<reponame>vaskrneup/NepseTools<filename>nepse_tools/platforms/meroshare/exceptions.py
"""
All Exceptions thrown by Meroshare

Contribution:
    You can add as many new Exceptions as you want, but make sure they inherit from `MeroshareBaseException`
"""

from nepse_tools.exceptions import NepseToolsBaseException


class MeroshareBaseException(NepseToolsBaseException):
    """
    Base Exception for meroshare, Every exception raised by meroshare must inherit from this Exception.
    """
    pass


class MeroshareDataLoadError(MeroshareBaseException):
    """
    Exception raised when api request to Meroshare backend fails.
    """
    pass


class MeroshareLoginError(MeroshareBaseException):
    """
    Exception raised when performing authentication related tasks.
    """
    pass


class MeroshareShareApplicationError(MeroshareBaseException):
    """
    Exception raised when Application Error is encountered.
    """
    pass


class MeroshareClientIDNotFoundError(MeroshareBaseException):
    """
    Exception raised when client ID is not found, when using `DP` to find the client ID.
    """
    pass


class MeroshareCredentialChangeError(MeroshareBaseException):
    """
    Exception raised when changing of pin or password is not successful.
    """
    pass

"""
All Exceptions thrown by Meroshare

Contribution:
    You can add as many new Exceptions as you want, but make sure they inherit from `MeroshareBaseException`
"""

from nepse_tools.exceptions import NepseToolsBaseException


class MeroshareBaseException(NepseToolsBaseException):
    """
    Base Exception for meroshare, Every exception raised by meroshare must inherit from this Exception.
    """
    pass


class MeroshareDataLoadError(MeroshareBaseException):
    """
    Exception raised when api request to Meroshare backend fails.
    """
    pass


class MeroshareLoginError(MeroshareBaseException):
    """
    Exception raised when performing authentication related tasks.
    """
    pass


class MeroshareShareApplicationError(MeroshareBaseException):
    """
    Exception raised when Application Error is encountered.
    """
    pass


class MeroshareClientIDNotFoundError(MeroshareBaseException):
    """
    Exception raised when client ID is not found, when using `DP` to find the client ID.
    """
    pass


class MeroshareCredentialChangeError(MeroshareBaseException):
    """
    Exception raised when changing of pin or password is not successful.
    """
    pass
All Exceptions thrown by Meroshare  Contribution:     You can add as many new Exceptions as you want, but make sure they inherit from `MeroshareBaseException` Base Exception for meroshare, Every exception raised by meroshare must inherit from this Exception. Exception raised when api request to Meroshare backend fails. Exception raised when performing authentication related tasks. Exception raised when Application Error is encountered. Exception raised when client ID is not found, when using `DP` to find the client ID. Exception raised when changing of pin or password is not successful.