TokenSnifferError

Documentation for eth_defi.token_analysis.tokensniffer.TokenSnifferError exception.

exception TokenSnifferError

Bases: Exception

Wrap bad API replies from TokenSniffer.

  • Has attribute status_code

Parameters

status_code – to reflect the HTTP code (e.g. 404 if TokenSniffer does not have data)

__init__(msg, status_code, address)
Parameters
  • status_code (int) – to reflect the HTTP code (e.g. 404 if TokenSniffer does not have data)

  • msg (str) –

  • address (str) –

__new__(**kwargs)
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.