xerberus.errors

Documentation for eth_defi.xerberus.errors Python module.

Xerberus API error types.

Exceptions

XerberusAPIError

Raised when a Xerberus API response cannot be used.

exception XerberusAPIError

Bases: RuntimeError

Raised when a Xerberus API response cannot be used.

Covers non-success JSON envelopes, auth middleware bodies without a status field, 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.