Cartouche.VM.InvalidVm exception (Cartouche v0.2.0)

Copy Markdown View Source

Raised by Cartouche.VM.exec/3 (and friends) when the EVM run terminates in a non-recoverable error state — e.g. invalid opcode, stack underflow, or unhandled exception inside an opcode handler.

Public callers can rescue Cartouche.VM.InvalidVm to handle these.