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 IntoEnumIterator for ErrorCode
impl IntoEnumIterator for ErrorCode
type Iterator = ErrorCodeIter
fn iter() -> ErrorCodeIter ⓘ
Source§impl JsonSchema for ErrorCode
impl JsonSchema for ErrorCode
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§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
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<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more