#[non_exhaustive]#[repr(i32)]pub enum ErrorCode {
Show 61 variants
OtherCause = -1,
InternalServerError = 1,
ConnectionFailed = 100,
ObjectNotFound = 101,
InvalidQuery = 102,
InvalidClassName = 103,
MissingObjectId = 104,
InvalidKeyName = 105,
InvalidPointer = 106,
InvalidJson = 107,
CommandUnavailable = 108,
NotInitialized = 109,
IncorrectType = 111,
InvalidChannelName = 112,
PushMisconfigured = 115,
ObjectTooLarge = 116,
OperationForbidden = 119,
CacheMiss = 120,
InvalidNestedKey = 121,
InvalidFileName = 122,
InvalidAcl = 123,
Timeout = 124,
InvalidEmailAddress = 125,
MissingContentType = 126,
MissingContentLength = 127,
InvalidContentLength = 128,
FileTooLarge = 129,
FileSaveError = 130,
DuplicateValue = 137,
InvalidRoleName = 139,
ExceededQuota = 140,
ScriptFailed = 141,
ValidationError = 142,
InvalidImageData = 143,
UnsavedFileError = 151,
InvalidPushTimeError = 152,
FileDeleteError = 153,
RequestLimitExceeded = 155,
DuplicateRequest = 159,
InvalidEventName = 160,
FileDeleteUnnamedError = 161,
InvalidValue = 162,
UsernameMissing = 200,
PasswordMissing = 201,
UsernameTaken = 202,
EmailTaken = 203,
EmailMissing = 204,
EmailNotFound = 205,
SessionMissing = 206,
MustCreateUserThroughSignup = 207,
AccountAlreadyLinked = 208,
InvalidSessionToken = 209,
MfaError = 210,
MfaTokenRequired = 211,
LinkedIdMissing = 250,
InvalidLinkedSession = 251,
UnsupportedService = 252,
InvalidSchemaOperation = 255,
AggregateError = 600,
FileReadError = 601,
XDomainRequest = 602,
}Expand description
The upstream error code table. The discriminant is the wire value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OtherCause = -1
InternalServerError = 1
ConnectionFailed = 100
ObjectNotFound = 101
InvalidQuery = 102
InvalidClassName = 103
MissingObjectId = 104
InvalidKeyName = 105
InvalidPointer = 106
InvalidJson = 107
NotInitialized = 109
IncorrectType = 111
InvalidChannelName = 112
PushMisconfigured = 115
ObjectTooLarge = 116
OperationForbidden = 119
CacheMiss = 120
InvalidNestedKey = 121
InvalidFileName = 122
InvalidAcl = 123
Timeout = 124
InvalidEmailAddress = 125
MissingContentType = 126
MissingContentLength = 127
InvalidContentLength = 128
FileTooLarge = 129
FileSaveError = 130
DuplicateValue = 137
InvalidRoleName = 139
ExceededQuota = 140
ScriptFailed = 141
ValidationError = 142
InvalidImageData = 143
UnsavedFileError = 151
InvalidPushTimeError = 152
FileDeleteError = 153
RequestLimitExceeded = 155
DuplicateRequest = 159
InvalidEventName = 160
FileDeleteUnnamedError = 161
InvalidValue = 162
UsernameMissing = 200
PasswordMissing = 201
UsernameTaken = 202
EmailTaken = 203
EmailMissing = 204
EmailNotFound = 205
SessionMissing = 206
MustCreateUserThroughSignup = 207
AccountAlreadyLinked = 208
InvalidSessionToken = 209
MfaError = 210
MfaTokenRequired = 211
LinkedIdMissing = 250
InvalidLinkedSession = 251
UnsupportedService = 252
InvalidSchemaOperation = 255
AggregateError = 600
FileReadError = 601
XDomainRequest = 602
Implementations§
Trait Implementations§
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 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.