file modules/exceptions.py

[No description available]

Namespaces

Name
modules
modules::exceptions

Classes

Name
classmodules::exceptions::Error
classmodules::exceptions::ReturnError

Source code

################################
#                              #
#  Exception classes for BOSS  #
#                              #
################################


class Error(Exception):
    """Base class for exceptions."""
    pass


class ReturnError(Error):
    """Exception raised when a function cannot return the expected result.

    Attributes:
        msg  -- explanation of the error
    """

    def __init__(self, msg):
        self.msg = 'ReturnError: ' + msg

Updated on 2022-08-03 at 12:58:09 +0000