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
source§impl PartialEq<ErrorCode> for ErrorCode
impl PartialEq<ErrorCode> for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more