TransactionReverted

Documentation for eth_defi.revert_reason.TransactionReverted exception.

exception TransactionReverted

Bases: Exception

Python exception to signal a transaction error with a good revert reason.

See eth_defi.middleware.revert_reason_middleware().

__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.