pub enum ErrorCode {
Show 50 variants
SubnetOversubscribed = 101,
MaxNumberOfCanistersReached = 102,
CanisterQueueFull = 201,
IngressMessageTimeout = 202,
CanisterQueueNotEmpty = 203,
IngressHistoryFull = 204,
CanisterIdAlreadyExists = 205,
CanisterNotFound = 301,
CanisterMethodNotFound = 302,
CanisterAlreadyInstalled = 303,
CanisterWasmModuleNotFound = 304,
InsufficientMemoryAllocation = 402,
InsufficientCyclesForCreateCanister = 403,
SubnetNotFound = 404,
CanisterNotHostedBySubnet = 405,
CanisterOutOfCycles = 501,
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,
CertifiedStateUnavailable = 515,
CanisterRejectedMessage = 516,
QueryCallGraphLoopDetected = 517,
UnknownManagementMessage = 518,
InvalidManagementPayload = 519,
InsufficientCyclesInCall = 520,
CanisterWasmEngineError = 521,
CanisterInstructionLimitExceeded = 522,
CanisterInstallCodeRateLimited = 523,
CanisterMemoryAccessLimitExceeded = 524,
QueryCallGraphTooDeep = 525,
QueryCallGraphTotalInstructionLimitExceeded = 526,
CompositeQueryCalledInReplicatedMode = 527,
QueryTimeLimitExceeded = 528,
QueryCallGraphInternal = 529,
InsufficientCyclesInComputeAllocation = 530,
InsufficientCyclesInMemoryAllocation = 531,
InsufficientCyclesInMemoryGrow = 532,
ReservedCyclesLimitExceededInMemoryAllocation = 533,
ReservedCyclesLimitExceededInMemoryGrow = 534,
InsufficientCyclesInMessageMemoryGrow = 535,
}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
CanisterNotFound = 301
CanisterMethodNotFound = 302
CanisterAlreadyInstalled = 303
CanisterWasmModuleNotFound = 304
InsufficientMemoryAllocation = 402
InsufficientCyclesForCreateCanister = 403
SubnetNotFound = 404
CanisterNotHostedBySubnet = 405
CanisterOutOfCycles = 501
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
CanisterRejectedMessage = 516
QueryCallGraphLoopDetected = 517
UnknownManagementMessage = 518
InvalidManagementPayload = 519
InsufficientCyclesInCall = 520
CanisterWasmEngineError = 521
CanisterInstructionLimitExceeded = 522
CanisterInstallCodeRateLimited = 523
CanisterMemoryAccessLimitExceeded = 524
QueryCallGraphTooDeep = 525
QueryCallGraphTotalInstructionLimitExceeded = 526
CompositeQueryCalledInReplicatedMode = 527
QueryTimeLimitExceeded = 528
QueryCallGraphInternal = 529
InsufficientCyclesInComputeAllocation = 530
InsufficientCyclesInMemoryAllocation = 531
InsufficientCyclesInMemoryGrow = 532
ReservedCyclesLimitExceededInMemoryAllocation = 533
ReservedCyclesLimitExceededInMemoryGrow = 534
InsufficientCyclesInMessageMemoryGrow = 535
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 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 PartialEq for ErrorCode
impl PartialEq for ErrorCode
source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ErrorCode
impl Eq 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.