exception
Classes:
Name | Description |
---|---|
HookNotCalledError |
Raised when a hook is not called but should have been. |
HookNotSetError |
Raised when a hook is not set but should have been. |
InvalidArgumentError |
Raised when a callable receives an invalid argument. |
SuperBatchSizeMismatchError |
Raised when the super batch is not the expected size. |
Functions:
Name | Description |
---|---|
log_uncaught_exceptions |
Log uncaught exceptions raised by the given function. |
HookNotCalledError
¶
Bases: ValueError
Raised when a hook is not called but should have been.
HookNotSetError
¶
Bases: ValueError
Raised when a hook is not set but should have been.
InvalidArgumentError
¶
Bases: ValueError
Raised when a callable receives an invalid argument.
SuperBatchSizeMismatchError
¶
Bases: ValueError
Raised when the super batch is not the expected size.
log_uncaught_exceptions
¶
Log uncaught exceptions raised by the given function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Callable
|
The function to log unhandled exceptions from. |
required |
Returns:
Type | Description |
---|---|
typing.Callable[~ParameterP, ~ReturnT]
|
The decorated function if |