Struct fvm_shared::error::ExitCode
source · pub struct ExitCode { /* private fields */ }Expand description
ExitCode defines the exit code from the VM invocation.
Implementations§
source§impl ExitCode
impl ExitCode
sourcepub const SYS_SENDER_INVALID: ExitCode = _
pub const SYS_SENDER_INVALID: ExitCode = _
The message sender doesn’t exist.
sourcepub const SYS_SENDER_STATE_INVALID: ExitCode = _
pub const SYS_SENDER_STATE_INVALID: ExitCode = _
The message sender was not in a valid state to send this message.
Either:
- The sender’s nonce nonce didn’t match the message nonce.
- The sender didn’t have the funds to cover the message gas.
sourcepub const SYS_ILLEGAL_INSTRUCTION: ExitCode = _
pub const SYS_ILLEGAL_INSTRUCTION: ExitCode = _
The message receiver trapped (panicked).
sourcepub const SYS_INVALID_RECEIVER: ExitCode = _
pub const SYS_INVALID_RECEIVER: ExitCode = _
The message receiver doesn’t exist and can’t be automatically created
sourcepub const SYS_INSUFFICIENT_FUNDS: ExitCode = _
pub const SYS_INSUFFICIENT_FUNDS: ExitCode = _
The message sender didn’t have the requisite funds.
sourcepub const SYS_OUT_OF_GAS: ExitCode = _
pub const SYS_OUT_OF_GAS: ExitCode = _
Message execution (including subcalls) used more gas than the specified limit.
sourcepub const SYS_ILLEGAL_EXIT_CODE: ExitCode = _
pub const SYS_ILLEGAL_EXIT_CODE: ExitCode = _
The message receiver aborted with a reserved exit code.
sourcepub const SYS_ASSERTION_FAILED: ExitCode = _
pub const SYS_ASSERTION_FAILED: ExitCode = _
An internal VM assertion failed.
sourcepub const SYS_MISSING_RETURN: ExitCode = _
pub const SYS_MISSING_RETURN: ExitCode = _
The actor returned a block handle that doesn’t exist
sourcepub const FIRST_USER_EXIT_CODE: u32 = 16u32
pub const FIRST_USER_EXIT_CODE: u32 = 16u32
The lowest exit code that an actor may abort with.
sourcepub const USR_ILLEGAL_ARGUMENT: ExitCode = _
pub const USR_ILLEGAL_ARGUMENT: ExitCode = _
The method parameters are invalid.
sourcepub const USR_NOT_FOUND: ExitCode = _
pub const USR_NOT_FOUND: ExitCode = _
The requested resource does not exist.
sourcepub const USR_FORBIDDEN: ExitCode = _
pub const USR_FORBIDDEN: ExitCode = _
The requested operation is forbidden.
sourcepub const USR_INSUFFICIENT_FUNDS: ExitCode = _
pub const USR_INSUFFICIENT_FUNDS: ExitCode = _
The actor has insufficient funds to perform the requested operation.
sourcepub const USR_ILLEGAL_STATE: ExitCode = _
pub const USR_ILLEGAL_STATE: ExitCode = _
The actor’s internal state is invalid.
sourcepub const USR_SERIALIZATION: ExitCode = _
pub const USR_SERIALIZATION: ExitCode = _
There was a de/serialization failure within actor code.
sourcepub const USR_UNHANDLED_MESSAGE: ExitCode = _
pub const USR_UNHANDLED_MESSAGE: ExitCode = _
The message cannot be handled (usually indicates an unhandled method number).
sourcepub const USR_UNSPECIFIED: ExitCode = _
pub const USR_UNSPECIFIED: ExitCode = _
The actor failed with an unspecified error.
sourcepub const USR_ASSERTION_FAILED: ExitCode = _
pub const USR_ASSERTION_FAILED: ExitCode = _
The actor failed a user-level assertion.
sourcepub const USR_READ_ONLY: ExitCode = _
pub const USR_READ_ONLY: ExitCode = _
The requested operation cannot be performed in “read-only” mode.
sourcepub const USR_NOT_PAYABLE: ExitCode = _
pub const USR_NOT_PAYABLE: ExitCode = _
The method cannot handle a transfer of value.