Expand description
Panic payloads and the panic hook that classify frame unwinds.
Structs§
- Invoke
Error - Panic payload classifying how an invocation frame terminated; downcast at the frame’s catch site and mapped to the frame outcome.
- Panic
Hook Guard - Activates the classifying panic hook on the calling thread for as long as it is held, installing it on first use.
- Panic
Location - Where a contract body panicked.
- Panic
Record - What the harness could see of a contract body’s panic.
Functions§
- abort_
transaction_ error - Payload for abandoning the whole transaction.
- control_
flow_ unwind - Panic payload for the non-error control-flow unwind (
raw_Returnterminating an invocation frame). Despite traveling as anInvokeError, the code isInvokeErrorCode::None: the frame completed; the panic only unwinds the contract’s Rust stack.raw_Exitis not one of these: it reverts the frame, so it unwinds as adeterministic_error. - deterministic_
error - Payload for a deterministic contract failure.
- invoke_
wrapper - Wrap a contract closure in the catch site that maps its panics to Thruput invoke error codes.
- out_
of_ gas_ error - Payload for an out-of-gas termination.
- unrecoverable_
error - Payload for an unrecoverable harness/FFI failure (not a contract fault).
- validation_
error - Payload for a validation failure.