Skip to content

Documentation for ToMeDa

tomeda.exception

Exceptions for Tomeda.

TomedaException

TomedaException(*args: object)

Bases: Exception

Base exception for Tomeda.

Source code in tomeda/exception.py
 9
10
def __init__(self, *args: object) -> None:
    super().__init__(args)

TomedaFactoryError

TomedaFactoryError(message: str, *args: object)

Bases: TomedaException

Base exception for all errors related to the Factory process.

Source code in tomeda/exception.py
30
31
def __init__(self, message: str, *args: object) -> None:
    super().__init__(message, args)

TomedaFactoryImportError

TomedaFactoryImportError(message: str, *args: object)

Bases: TomedaFactoryError, TomedaImportError

Raised when the module or class cannot be imported.

Source code in tomeda/exception.py
57
58
def __init__(self, message: str, *args: object) -> None:
    super().__init__(message, args)

TomedaFactoryInstantiationError

TomedaFactoryInstantiationError(
    message: str, *args: object
)

Bases: TomedaFactoryError

Raised when there's an error instantiating the repository class.

Source code in tomeda/exception.py
75
76
def __init__(self, message: str, *args: object) -> None:
    super().__init__(message, args)

TomedaFactoryInvalidClassError

TomedaFactoryInvalidClassError(message: str, *args: object)

Bases: TomedaFactoryError

Raised when the imported class does not extend the expected base class.

Source code in tomeda/exception.py
66
67
def __init__(self, message: str, *args: object) -> None:
    super().__init__(message, args)

TomedaFactoryTypeError

TomedaFactoryTypeError(message: str, *args: object)

Bases: TomedaFactoryError

Raised when the provided object is not of the expected type.

Source code in tomeda/exception.py
39
40
def __init__(self, message: str, *args: object) -> None:
    super().__init__(message, args)

TomedaFactoryValueError

TomedaFactoryValueError(message: str, *args: object)

Bases: TomedaFactoryError

Raised when the provided object does not have the expected value.

Source code in tomeda/exception.py
48
49
def __init__(self, message: str, *args: object) -> None:
    super().__init__(message, args)

TomedaImportError

TomedaImportError(message: str, *args: object)

Bases: TomedaException

Exception raised when a module cannot be imported.

This could be due to various reasons, such as the module not existing, the module being corrupt, etc.

Source code in tomeda/exception.py
21
22
def __init__(self, message: str, *args: object) -> None:
    super().__init__(message, args)