Enum mongodb::error::ErrorCode
[−]
[src]
pub enum ErrorCode { OK, InternalError, BadValue, OBSOLETE_DuplicateKey, NoSuchKey, GraphContainsCycle, HostUnreachable, HostNotFound, UnknownError, FailedToParse, CannotMutateObject, UserNotFound, UnsupportedFormat, Unauthorized, TypeMismatch, Overflow, InvalidLength, ProtocolError, AuthenticationFailed, CannotReuseObject, IllegalOperation, EmptyArrayOperation, InvalidBSON, AlreadyInitialized, LockTimeout, RemoteValidationError, NamespaceNotFound, IndexNotFound, PathNotViable, NonExistentPath, InvalidPath, RoleNotFound, RolesNotRelated, PrivilegeNotFound, CannotBackfillArray, UserModificationFailed, RemoteChangeDetected, FileRenameFailed, FileNotOpen, FileStreamFailed, ConflictingUpdateOperators, FileAlreadyOpen, LogWriteFailed, CursorNotFound, UserDataInconsistent, LockBusy, NoMatchingDocument, NamespaceExists, InvalidRoleModification, ExceededTimeLimit, ManualInterventionRequired, DollarPrefixedFieldName, InvalidIdField, NotSingleValueField, InvalidDBRef, EmptyFieldName, DottedFieldName, RoleModificationFailed, CommandNotFound, DatabaseNotFound, ShardKeyNotFound, OplogOperationUnsupported, StaleShardVersion, WriteConcernFailed, MultipleErrorsOccurred, ImmutableField, CannotCreateIndex, IndexAlreadyExists, AuthSchemaIncompatible, ShardNotFound, ReplicaSetNotFound, InvalidOptions, InvalidNamespace, NodeNotFound, WriteConcernLegacyOK, NoReplicationEnabled, OperationIncomplete, CommandResultSchemaViolation, UnknownReplWriteConcern, RoleDataInconsistent, NoWhereParseContext, NoProgressMade, RemoteResultsUnavailable, DuplicateKeyValue, IndexOptionsConflict, IndexKeySpecsConflict, CannotSplit, SplitFailed, NetworkTimeout, CallbackCanceled, ShutdownInProgress, SecondaryAheadOfPrimary, InvalidReplicaSetConfig, NotYetInitialized, NotSecondary, OperationFailed, NoProjectionFound, DBPathInUse, WriteConcernNotDefined, CannotSatisfyWriteConcern, OutdatedClient, IncompatibleAuditMetadata, NewReplicaSetConfigurationIncompatible, NodeNotElectable, IncompatibleShardingMetadata, DistributedClockSkewed, LockFailed, InconsistentReplicaSetNames, ConfigurationInProgress, CannotInitializeNodeWithData, NotExactValueField, WriteConflict, InitialSyncFailure, InitialSyncOplogSourceMissing, CommandNotSupported, DocTooLargeForCapped, ConflictingOperationInProgress, NamespaceNotSharded, InvalidSyncSource, OplogStartMissing, DocumentValidationFailure, OBSOLETE_ReadAfterOptimeTimeout, NotAReplicaSet, IncompatibleElectionProtocol, CommandFailed, RPCProtocolNegotiationFailed, UnrecoverableRollbackError, LockNotFound, LockStateChangeFailed, SymbolNotFound, RLPInitializationFailed, ConfigServersInconsistent, FailedToSatisfyReadPreference, XXX_TEMP_NAME_ReadCommittedCurrentlyUnavailable, StaleTerm, CappedPositionLost, IncompatibleShardingConfigVersion, RemoteOplogStale, JSInterpreterFailure, NotMaster, DuplicateKey, InterruptedAtShutdown, Interrupted, BackgroundOperationInProgressForDatabase, BackgroundOperationInProgressForNamespace, PrepareConfigsFailedCode, DatabaseDifferCase, ShardKeyTooBig, SendStaleConfig, NotMasterNoSlaveOkCode, NotMasterOrSecondaryCode, OutOfDiskSpace, KeyTooLong, MaxError, }
Variants
OK
InternalError
BadValue
OBSOLETE_DuplicateKey
NoSuchKey
GraphContainsCycle
HostUnreachable
HostNotFound
UnknownError
FailedToParse
CannotMutateObject
UserNotFound
UnsupportedFormat
TypeMismatch
Overflow
InvalidLength
ProtocolError
AuthenticationFailed
CannotReuseObject
IllegalOperation
EmptyArrayOperation
InvalidBSON
AlreadyInitialized
LockTimeout
RemoteValidationError
NamespaceNotFound
IndexNotFound
PathNotViable
NonExistentPath
InvalidPath
RoleNotFound
RolesNotRelated
PrivilegeNotFound
CannotBackfillArray
UserModificationFailed
RemoteChangeDetected
FileRenameFailed
FileNotOpen
FileStreamFailed
ConflictingUpdateOperators
FileAlreadyOpen
LogWriteFailed
CursorNotFound
UserDataInconsistent
LockBusy
NoMatchingDocument
NamespaceExists
InvalidRoleModification
ExceededTimeLimit
ManualInterventionRequired
DollarPrefixedFieldName
InvalidIdField
NotSingleValueField
InvalidDBRef
EmptyFieldName
DottedFieldName
RoleModificationFailed
CommandNotFound
DatabaseNotFound
ShardKeyNotFound
OplogOperationUnsupported
StaleShardVersion
WriteConcernFailed
MultipleErrorsOccurred
ImmutableField
CannotCreateIndex
IndexAlreadyExists
AuthSchemaIncompatible
ShardNotFound
ReplicaSetNotFound
InvalidOptions
InvalidNamespace
NodeNotFound
WriteConcernLegacyOK
NoReplicationEnabled
OperationIncomplete
CommandResultSchemaViolation
UnknownReplWriteConcern
RoleDataInconsistent
NoWhereParseContext
NoProgressMade
DuplicateKeyValue
IndexOptionsConflict
IndexKeySpecsConflict
CannotSplit
SplitFailed
NetworkTimeout
CallbackCanceled
ShutdownInProgress
SecondaryAheadOfPrimary
InvalidReplicaSetConfig
NotYetInitialized
NotSecondary
OperationFailed
NoProjectionFound
DBPathInUse
WriteConcernNotDefined
CannotSatisfyWriteConcern
OutdatedClient
IncompatibleAuditMetadata
NewReplicaSetConfigurationIncompatible
NodeNotElectable
IncompatibleShardingMetadata
DistributedClockSkewed
LockFailed
InconsistentReplicaSetNames
ConfigurationInProgress
CannotInitializeNodeWithData
NotExactValueField
WriteConflict
InitialSyncFailure
InitialSyncOplogSourceMissing
CommandNotSupported
DocTooLargeForCapped
ConflictingOperationInProgress
NamespaceNotSharded
InvalidSyncSource
OplogStartMissing
DocumentValidationFailure
OBSOLETE_ReadAfterOptimeTimeout
NotAReplicaSet
IncompatibleElectionProtocol
CommandFailed
RPCProtocolNegotiationFailed
UnrecoverableRollbackError
LockNotFound
LockStateChangeFailed
SymbolNotFound
RLPInitializationFailed
ConfigServersInconsistent
FailedToSatisfyReadPreference
StaleTerm
CappedPositionLost
IncompatibleShardingConfigVersion
RemoteOplogStale
JSInterpreterFailure
NotMaster
DuplicateKey
InterruptedAtShutdown
Interrupted
BackgroundOperationInProgressForDatabase
BackgroundOperationInProgressForNamespace
PrepareConfigsFailedCode
DatabaseDifferCase
ShardKeyTooBig
SendStaleConfig
NotMasterNoSlaveOkCode
NotMasterOrSecondaryCode
OutOfDiskSpace
KeyTooLong
MaxError
Methods
impl ErrorCode
[src]
fn is_network_error(&self) -> bool
fn is_interruption(&self) -> bool
fn is_index_creation_error(&self) -> bool
Trait Implementations
impl Eq for ErrorCode
[src]
impl PartialEq for ErrorCode
[src]
fn eq(&self, __arg_0: &ErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.