XerberusAPIError

Documentation for eth_defi.xerberus.errors.XerberusAPIError exception.

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.