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

Methods

impl ErrorCode
[src]

Trait Implementations

impl Debug for ErrorCode
[src]

Formats the value using the given formatter.

impl PartialEq for ErrorCode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ErrorCode
[src]

impl Display for ErrorCode
[src]

Formats the value using the given formatter. Read more