pub enum ErrorCode {
Show 40 variants
SubnetOversubscribed,
MaxNumberOfCanistersReached,
CanisterOutputQueueFull,
IngressMessageTimeout,
CanisterQueueNotEmpty,
CanisterNotFound,
CanisterMethodNotFound,
CanisterAlreadyInstalled,
CanisterWasmModuleNotFound,
InsufficientMemoryAllocation,
InsufficientCyclesForCreateCanister,
SubnetNotFound,
CanisterNotHostedBySubnet,
CanisterOutOfCycles,
CanisterTrapped,
CanisterCalledTrap,
CanisterContractViolation,
CanisterInvalidWasm,
CanisterDidNotReply,
CanisterOutOfMemory,
CanisterStopped,
CanisterStopping,
CanisterNotStopped,
CanisterStoppingCancelled,
CanisterInvalidController,
CanisterFunctionNotFound,
CanisterNonEmpty,
CertifiedStateUnavailable,
CanisterRejectedMessage,
QueryCallGraphLoopDetected,
UnknownManagementMessage,
InvalidManagementPayload,
InsufficientCyclesInCall,
CanisterWasmEngineError,
CanisterInstructionLimitExceeded,
CanisterInstallCodeRateLimited,
CanisterMemoryAccessLimitExceeded,
QueryCallGraphTooDeep,
QueryCallGraphTotalInstructionLimitExceeded,
CompositeQueryCalledInReplicatedMode,
}Expand description
User-facing error codes.
The error codes are currently assigned using an HTTP-like convention: the most significant digit is the corresponding reject code and the rest is just a sequentially assigned two-digit number.
Variants§
SubnetOversubscribed
MaxNumberOfCanistersReached
CanisterOutputQueueFull
IngressMessageTimeout
CanisterQueueNotEmpty
CanisterNotFound
CanisterMethodNotFound
CanisterAlreadyInstalled
CanisterWasmModuleNotFound
InsufficientMemoryAllocation
InsufficientCyclesForCreateCanister
SubnetNotFound
CanisterNotHostedBySubnet
CanisterOutOfCycles
CanisterTrapped
CanisterCalledTrap
CanisterContractViolation
CanisterInvalidWasm
CanisterDidNotReply
CanisterOutOfMemory
CanisterStopped
CanisterStopping
CanisterNotStopped
CanisterStoppingCancelled
CanisterInvalidController
CanisterFunctionNotFound
CanisterNonEmpty
CanisterRejectedMessage
QueryCallGraphLoopDetected
UnknownManagementMessage
InvalidManagementPayload
InsufficientCyclesInCall
CanisterWasmEngineError
CanisterInstructionLimitExceeded
CanisterInstallCodeRateLimited
CanisterMemoryAccessLimitExceeded
QueryCallGraphTooDeep
QueryCallGraphTotalInstructionLimitExceeded
CompositeQueryCalledInReplicatedMode
Trait Implementations§
source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more