pub enum ErrorCode {
Show 62 variants
SubnetOversubscribed = 101,
MaxNumberOfCanistersReached = 102,
CanisterQueueFull = 201,
IngressMessageTimeout = 202,
CanisterQueueNotEmpty = 203,
IngressHistoryFull = 204,
CanisterIdAlreadyExists = 205,
StopCanisterRequestTimeout = 206,
CanisterOutOfCycles = 207,
CertifiedStateUnavailable = 208,
CanisterInstallCodeRateLimited = 209,
CanisterHeapDeltaRateLimited = 210,
SubnetCoolingDown = 211,
CanisterNotFound = 301,
CanisterSnapshotNotFound = 305,
InsufficientMemoryAllocation = 402,
InsufficientCyclesForCreateCanister = 403,
SubnetNotFound = 404,
CanisterNotHostedBySubnet = 405,
CanisterRejectedMessage = 406,
UnknownManagementMessage = 407,
InvalidManagementPayload = 408,
CanisterSnapshotImmutable = 409,
InvalidSubnetAdmin = 410,
CanisterTrapped = 502,
CanisterCalledTrap = 503,
CanisterContractViolation = 504,
CanisterInvalidWasm = 505,
CanisterDidNotReply = 506,
CanisterOutOfMemory = 507,
CanisterStopped = 508,
CanisterStopping = 509,
CanisterNotStopped = 510,
CanisterStoppingCancelled = 511,
CanisterInvalidController = 512,
CanisterFunctionNotFound = 513,
CanisterNonEmpty = 514,
QueryCallGraphLoopDetected = 517,
InsufficientCyclesInCall = 520,
CanisterWasmEngineError = 521,
CanisterInstructionLimitExceeded = 522,
CanisterMemoryAccessLimitExceeded = 524,
QueryCallGraphTooDeep = 525,
QueryCallGraphTotalInstructionLimitExceeded = 526,
CompositeQueryCalledInReplicatedMode = 527,
QueryTimeLimitExceeded = 528,
QueryCallGraphInternal = 529,
InsufficientCyclesInComputeAllocation = 530,
InsufficientCyclesInMemoryAllocation = 531,
InsufficientCyclesInMemoryGrow = 532,
ReservedCyclesLimitExceededInMemoryAllocation = 533,
ReservedCyclesLimitExceededInMemoryGrow = 534,
InsufficientCyclesInMessageMemoryGrow = 535,
CanisterMethodNotFound = 536,
CanisterWasmModuleNotFound = 537,
CanisterAlreadyInstalled = 538,
CanisterWasmMemoryLimitExceeded = 539,
ReservedCyclesLimitIsTooLow = 540,
CanisterInvalidControllerOrSubnetAdmin = 541,
CanisterStatusAccessDenied = 542,
DeadlineExpired = 601,
ResponseDropped = 602,
}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 = 101
MaxNumberOfCanistersReached = 102
CanisterQueueFull = 201
IngressMessageTimeout = 202
CanisterQueueNotEmpty = 203
IngressHistoryFull = 204
CanisterIdAlreadyExists = 205
StopCanisterRequestTimeout = 206
CanisterOutOfCycles = 207
CanisterInstallCodeRateLimited = 209
CanisterHeapDeltaRateLimited = 210
SubnetCoolingDown = 211
CanisterNotFound = 301
CanisterSnapshotNotFound = 305
InsufficientMemoryAllocation = 402
InsufficientCyclesForCreateCanister = 403
SubnetNotFound = 404
CanisterNotHostedBySubnet = 405
CanisterRejectedMessage = 406
UnknownManagementMessage = 407
InvalidManagementPayload = 408
CanisterSnapshotImmutable = 409
InvalidSubnetAdmin = 410
CanisterTrapped = 502
CanisterCalledTrap = 503
CanisterContractViolation = 504
CanisterInvalidWasm = 505
CanisterDidNotReply = 506
CanisterOutOfMemory = 507
CanisterStopped = 508
CanisterStopping = 509
CanisterNotStopped = 510
CanisterStoppingCancelled = 511
CanisterInvalidController = 512
CanisterFunctionNotFound = 513
CanisterNonEmpty = 514
QueryCallGraphLoopDetected = 517
InsufficientCyclesInCall = 520
CanisterWasmEngineError = 521
CanisterInstructionLimitExceeded = 522
CanisterMemoryAccessLimitExceeded = 524
QueryCallGraphTooDeep = 525
QueryCallGraphTotalInstructionLimitExceeded = 526
CompositeQueryCalledInReplicatedMode = 527
QueryTimeLimitExceeded = 528
QueryCallGraphInternal = 529
InsufficientCyclesInComputeAllocation = 530
InsufficientCyclesInMemoryAllocation = 531
InsufficientCyclesInMemoryGrow = 532
ReservedCyclesLimitExceededInMemoryAllocation = 533
ReservedCyclesLimitExceededInMemoryGrow = 534
InsufficientCyclesInMessageMemoryGrow = 535
CanisterMethodNotFound = 536
CanisterWasmModuleNotFound = 537
CanisterAlreadyInstalled = 538
CanisterWasmMemoryLimitExceeded = 539
ReservedCyclesLimitIsTooLow = 540
CanisterInvalidControllerOrSubnetAdmin = 541
CanisterStatusAccessDenied = 542
DeadlineExpired = 601
ResponseDropped = 602
Trait Implementations§
impl Copy for ErrorCode
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
impl Eq for ErrorCode
Source§impl Ord for ErrorCode
impl Ord for ErrorCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Forget for ErrorCode
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CustomError for T
impl<T> CustomError for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.