Crate near_vm_errors
source ·Expand description
near-vm-errors
Error that can occur inside Near Runtime encapsulated in a separate crate. Might merge it later.
Structs
- Type-erased error used to shuttle some concrete error coming from
External
through vm-logic.
Enums
- Permitted errors that cause a function call to fail gracefully.
- Serializable version of
FunctionCallError
. Must never reorder/remove elements, can only add new variants at the end (but do that very carefully). It describes stable serialization format, and only used by serialization logic. - An error that is caused by an operation on an inconsistent state, such as integer overflow.
- Error that can occur while preparing or executing Wasm smart-contract.
- For bugs in the runtime itself, crash and die is the usual response.
- A kind of a trap happened during execution of a binary