xerberus.errors
Documentation for eth_defi.xerberus.errors Python module.
Xerberus API error types.
Exceptions
Raised when a Xerberus API response cannot be used. |
- exception XerberusAPIError
Bases:
RuntimeErrorRaised when a Xerberus API response cannot be used.
Covers non-success JSON envelopes, auth middleware bodies without a
statusfield, validation errors, and unexpected response shapes.- __init__(*args, **kwargs)
- __new__(**kwargs)
- add_note(note, /)
Add a note to the exception
- with_traceback(tb, /)
Set self.__traceback__ to tb and return self.