UnsupportedVaultSimulation

Documentation for eth_defi.vault.deposit_redeem.UnsupportedVaultSimulation exception.

exception UnsupportedVaultSimulation

Bases: RuntimeError

A vault settlement simulation cannot safely run on this provider.

Parameters
  • reason – Human-readable explanation of why the simulation cannot run.

  • unsupported_reason – Stable, machine-readable adapter reason. This is retained separately from reason so consumers never need to parse exception prose.

  • protocol – Protocol adapter that rejected settlement, when known.

  • vault_address – Vault whose settlement was rejected, when known.

  • direction – deposit or redeem for the rejected asynchronous ticket.

  • phase – Lifecycle phase that was rejected. Defaults to settlement.

Store a machine-readable settlement refusal and its vault context.

Parameters
  • reason – Human-readable explanation of the refusal.

  • unsupported_reason – Stable adapter reason for consumer result mapping.

  • protocol – Protocol adapter that rejected settlement, when known.

  • vault_address – Vault whose settlement was rejected, when known.

  • direction – Rejected asynchronous ticket direction, when known.

  • phase – Rejected lifecycle phase.

__init__(reason, *, unsupported_reason=None, protocol=None, vault_address=None, direction=None, phase='settlement')

Store a machine-readable settlement refusal and its vault context.

Parameters
  • reason (str) – Human-readable explanation of the refusal.

  • unsupported_reason (Optional[str]) – Stable adapter reason for consumer result mapping.

  • protocol (Optional[str]) – Protocol adapter that rejected settlement, when known.

  • vault_address (Optional[eth_typing.evm.HexAddress]) – Vault whose settlement was rejected, when known.

  • direction (Optional[Literal['deposit', 'redeem']]) – Rejected asynchronous ticket direction, when known.

  • phase (str) – Rejected lifecycle phase.

Return type

None

__new__(**kwargs)
add_note(note, /)

Add a note to the exception

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.