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.