Module nepse_tools.platforms.meroshare.exceptions

Expand source code
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

Classes

class MeroshareBaseException (*args, error_data: Any = None)

Base Exception for meroshare, Every exception raised by meroshare must inherit from this Exception.

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

Ancestors

Subclasses

class MeroshareClientIDNotFoundError (*args, error_data: Any = None)

Exception raised when client ID is not found, when using DP to find the client ID.

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

Ancestors

class MeroshareCredentialChangeError (*args, error_data: Any = None)

Exception raised when changing of pin or password is not successful.

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

Ancestors

class MeroshareDataLoadError (*args, error_data: Any = None)

Exception raised when api request to Meroshare backend fails.

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

Ancestors

class MeroshareLoginError (*args, error_data: Any = None)

Exception raised when performing authentication related tasks.

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

Ancestors

class MeroshareShareApplicationError (*args, error_data: Any = None)

Exception raised when Application Error is encountered.

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

Ancestors