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#
Bases:
LeaspyException,RuntimeErrorLeaspy Exception for errors relative to convergence.
- exception LeaspyTypeError#
Bases:
LeaspyException,TypeErrorLeaspy Exception, deriving from TypeError.
- exception LeaspyInputError#
Bases:
LeaspyException,ValueErrorLeaspy Exception, deriving from ValueError.
- exception LeaspyDataInputError#
Bases:
LeaspyInputErrorLeaspy Input Error for data related issues.
- exception LeaspyModelInputError#
Bases:
LeaspyInputErrorLeaspy Input Error for model related issues.
- exception LeaspyAlgoInputError#
Bases:
LeaspyInputErrorLeaspy Input Error for algorithm related issues.
- exception LeaspyIndividualParamsInputError#
Bases:
LeaspyInputErrorLeaspy Input Error for individual parameters related issues.