errors
This module contains various exceptions used by the project.
FailedToDeserialize
Bases: WomError
, Generic[T]
Raised when a response from the WOM api fails to deserialize.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
method |
SerializerT[T]
|
The serializer method that was being called. |
required |
exc |
Exception
|
The exception that occurred. |
required |
Source code in wom/errors.py
UnwrapError
Bases: WomError
Raised when calling unwrap()
or
unwrap_err()
incorrectly.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message |
str
|
The error message. |
required |