leaspy.exceptions¶
Define custom Leaspy exceptions for better downstream handling.
Exceptions classes are nested so to handle in the most convenient way for users:
Exception
|
|
LeaspyException RuntimeError
| \ |
| LeaspyConvergenceError
/ \
TypeError / \ ValueError
| / \ |
LeaspyTypeError LeaspyInputError
/ | | \
/ | | LeaspyIndividualParamsInputError
/ | |
LeaspyDataInputError | LeaspyAlgoInputError
|
LeaspyModelInputError
- For I/O operations, non-Leaspy specific errors may be raised, in particular:
Exceptions¶
Base of all Leaspy exceptions. |
|
Leaspy Exception for errors relative to convergence. |
|
Leaspy Exception, deriving from TypeError. |
|
Leaspy Exception, deriving from ValueError. |
|
Leaspy Input Error for data related issues. |
|
Leaspy Input Error for model related issues. |
|
Leaspy Input Error for algorithm related issues. |
|
Leaspy Input Error for individual parameters related issues. |
Module Contents¶
- exception LeaspyConvergenceError[source]¶
Bases:
LeaspyException,RuntimeErrorLeaspy Exception for errors relative to convergence.
- exception LeaspyTypeError[source]¶
Bases:
LeaspyException,TypeErrorLeaspy Exception, deriving from TypeError.
- exception LeaspyInputError[source]¶
Bases:
LeaspyException,ValueErrorLeaspy Exception, deriving from ValueError.
- exception LeaspyDataInputError[source]¶
Bases:
LeaspyInputErrorLeaspy Input Error for data related issues.
- exception LeaspyModelInputError[source]¶
Bases:
LeaspyInputErrorLeaspy Input Error for model related issues.
- exception LeaspyAlgoInputError[source]¶
Bases:
LeaspyInputErrorLeaspy Input Error for algorithm related issues.
- exception LeaspyIndividualParamsInputError[source]¶
Bases:
LeaspyInputErrorLeaspy Input Error for individual parameters related issues.