pub enum ErrorCode {
Show 58 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,
CanisterNotFound = 301,
CanisterSnapshotNotFound = 305,
InsufficientMemoryAllocation = 402,
InsufficientCyclesForCreateCanister = 403,
SubnetNotFound = 404,
CanisterNotHostedBySubnet = 405,
CanisterRejectedMessage = 406,
UnknownManagementMessage = 407,
InvalidManagementPayload = 408,
CanisterSnapshotImmutable = 409,
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,
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
CanisterNotFound = 301
CanisterSnapshotNotFound = 305
InsufficientMemoryAllocation = 402
InsufficientCyclesForCreateCanister = 403
SubnetNotFound = 404
CanisterNotHostedBySubnet = 405
CanisterRejectedMessage = 406
UnknownManagementMessage = 407
InvalidManagementPayload = 408
CanisterSnapshotImmutable = 409
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
DeadlineExpired = 601
ResponseDropped = 602
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 From<ErrorCode> for RejectCode
impl From<ErrorCode> for RejectCode
Source§fn from(err: ErrorCode) -> RejectCode
fn from(err: ErrorCode) -> RejectCode
Converts to this type from the input type.
Source§impl IntoEnumIterator for ErrorCode
impl IntoEnumIterator for ErrorCode
type Iterator = ErrorCodeIter
fn iter() -> ErrorCodeIter ⓘ
Source§impl Ord for ErrorCode
impl Ord for ErrorCode
Source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
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