TransactionAssertionError

Documentation for eth_defi.trace.TransactionAssertionError exception.

exception TransactionAssertionError

Bases: AssertionError

Exception thrown when unit test transaction asset fails.

See assert_transaction_success_with_explanation().

__init__(message, revert_reason='', solidity_stack_trace='')
Parameters
  • revert_reason (str) –

  • solidity_stack_trace (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.