leaspy.exceptions module
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:
- exception LeaspyException
Bases:
Exception
Base of all Leaspy exceptions.
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception LeaspyConvergenceError
Bases:
LeaspyException
,RuntimeError
Leaspy Exception for errors relative to convergence.
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception LeaspyTypeError
Bases:
LeaspyException
,TypeError
Leaspy Exception, deriving from TypeError.
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception LeaspyInputError
Bases:
LeaspyException
,ValueError
Leaspy Exception, deriving from ValueError.
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception LeaspyDataInputError
Bases:
LeaspyInputError
Leaspy Input Error for data related issues.
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception LeaspyModelInputError
Bases:
LeaspyInputError
Leaspy Input Error for model related issues.
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception LeaspyAlgoInputError
Bases:
LeaspyInputError
Leaspy Input Error for algorithm related issues.
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception LeaspyIndividualParamsInputError
Bases:
LeaspyInputError
Leaspy Input Error for individual parameters related issues.
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.