mungo/error

Types

pub type Error {
  StructureError
  AuthenticationError
  ActorError
  TCPError(mug.Error)
  ConnectionStringError
  WriteErrors(List(WriteError))
  ServerError(MongoServerError)
}

Constructors

  • StructureError
  • AuthenticationError
  • ActorError
  • TCPError(mug.Error)
  • ConnectionStringError
  • WriteErrors(List(WriteError))
  • ServerError(MongoServerError)

https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.yml

pub type MongoServerError {
  OK(String)
  InternalError(String)
  BadValue(String)
  NoSuchKey(String)
  GraphContainsCycle(String)
  HostUnreachable(String)
  HostNotFound(String)
  UnknownError(String)
  FailedToParse(String)
  CannotMutateObject(String)
  UserNotFound(String)
  UnsupportedFormat(String)
  Unauthorized(String)
  TypeMismatch(String)
  Overflow(String)
  InvalidLength(String)
  ProtocolError(String)
  AuthenticationFailed(String)
  CannotReuseObject(String)
  IllegalOperation(String)
  EmptyArrayOperation(String)
  InvalidBSON(String)
  AlreadyInitialized(String)
  LockTimeout(String)
  RemoteValidationError(String)
  NamespaceNotFound(String)
  IndexNotFound(String)
  PathNotViable(String)
  NonExistentPath(String)
  InvalidPath(String)
  RoleNotFound(String)
  RolesNotRelated(String)
  PrivilegeNotFound(String)
  CannotBackfillArray(String)
  UserModificationFailed(String)
  RemoteChangeDetected(String)
  FileRenameFailed(String)
  FileNotOpen(String)
  FileStreamFailed(String)
  ConflictingUpdateOperators(String)
  FileAlreadyOpen(String)
  LogWriteFailed(String)
  CursorNotFound(String)
  UserDataInconsistent(String)
  LockBusy(String)
  NoMatchingDocument(String)
  NamespaceExists(String)
  InvalidRoleModification(String)
  MaxTimeMSExpired(String)
  ManualInterventionRequired(String)
  DollarPrefixedFieldName(String)
  InvalidIdField(String)
  NotSingleValueField(String)
  InvalidDBRef(String)
  EmptyFieldName(String)
  DottedFieldName(String)
  RoleModificationFailed(String)
  CommandNotFound(String)
  ShardKeyNotFound(String)
  OplogOperationUnsupported(String)
  StaleShardVersion(String)
  WriteConcernFailed(String)
  MultipleErrorsOccurred(String)
  ImmutableField(String)
  CannotCreateIndex(String)
  IndexAlreadyExists(String)
  AuthSchemaIncompatible(String)
  ShardNotFound(String)
  ReplicaSetNotFound(String)
  InvalidOptions(String)
  InvalidNamespace(String)
  NodeNotFound(String)
  WriteConcernLegacyOK(String)
  NoReplicationEnabled(String)
  OperationIncomplete(String)
  CommandResultSchemaViolation(String)
  UnknownReplWriteConcern(String)
  RoleDataInconsistent(String)
  NoMatchParseContext(String)
  NoProgressMade(String)
  RemoteResultsUnavailable(String)
  IndexOptionsConflict(String)
  IndexKeySpecsConflict(String)
  CannotSplit(String)
  NetworkTimeout(String)
  CallbackCanceled(String)
  ShutdownInProgress(String)
  SecondaryAheadOfPrimary(String)
  InvalidReplicaSetConfig(String)
  NotYetInitialized(String)
  NotSecondary(String)
  OperationFailed(String)
  NoProjectionFound(String)
  DBPathInUse(String)
  UnsatisfiableWriteConcern(String)
  OutdatedClient(String)
  IncompatibleAuditMetadata(String)
  NewReplicaSetConfigurationIncompatible(String)
  NodeNotElectable(String)
  IncompatibleShardingMetadata(String)
  DistributedClockSkewed(String)
  LockFailed(String)
  InconsistentReplicaSetNames(String)
  ConfigurationInProgress(String)
  CannotInitializeNodeWithData(String)
  NotExactValueField(String)
  WriteConflict(String)
  InitialSyncFailure(String)
  InitialSyncOplogSourceMissing(String)
  CommandNotSupported(String)
  DocTooLargeForCapped(String)
  ConflictingOperationInProgress(String)
  NamespaceNotSharded(String)
  InvalidSyncSource(String)
  OplogStartMissing(String)
  DocumentValidationFailure(String)
  NotAReplicaSet(String)
  IncompatibleElectionProtocol(String)
  CommandFailed(String)
  RPCProtocolNegotiationFailed(String)
  UnrecoverableRollbackError(String)
  LockNotFound(String)
  LockStateChangeFailed(String)
  SymbolNotFound(String)
  FailedToSatisfyReadPreference(String)
  ReadConcernMajorityNotAvailableYet(String)
  StaleTerm(String)
  CappedPositionLost(String)
  IncompatibleShardingConfigVersion(String)
  RemoteOplogStale(String)
  JSInterpreterFailure(String)
  InvalidSSLConfiguration(String)
  SSLHandshakeFailed(String)
  JSUncatchableError(String)
  CursorInUse(String)
  IncompatibleCatalogManager(String)
  PooledConnectionsDropped(String)
  ExceededMemoryLimit(String)
  ZLibError(String)
  ReadConcernMajorityNotEnabled(String)
  NoConfigPrimary(String)
  StaleEpoch(String)
  OperationCannotBeBatched(String)
  OplogOutOfOrder(String)
  ChunkTooBig(String)
  InconsistentShardIdentity(String)
  CannotApplyOplogWhilePrimary(String)
  CanRepairToDowngrade(String)
  MustUpgrade(String)
  DurationOverflow(String)
  MaxStalenessOutOfRange(String)
  IncompatibleCollationVersion(String)
  CollectionIsEmpty(String)
  ZoneStillInUse(String)
  InitialSyncActive(String)
  ViewDepthLimitExceeded(String)
  CommandNotSupportedOnView(String)
  OptionNotSupportedOnView(String)
  InvalidPipelineOperator(String)
  CommandOnShardedViewNotSupportedOnMongod(String)
  TooManyMatchingDocuments(String)
  CannotIndexParallelArrays(String)
  TransportSessionClosed(String)
  TransportSessionNotFound(String)
  TransportSessionUnknown(String)
  QueryPlanKilled(String)
  FileOpenFailed(String)
  ZoneNotFound(String)
  RangeOverlapConflict(String)
  WindowsPdhError(String)
  BadPerfCounterPath(String)
  AmbiguousIndexKeyPattern(String)
  InvalidViewDefinition(String)
  ClientMetadataMissingField(String)
  ClientMetadataAppNameTooLarge(String)
  ClientMetadataDocumentTooLarge(String)
  ClientMetadataCannotBeMutated(String)
  LinearizableReadConcernError(String)
  IncompatibleServerVersion(String)
  PrimarySteppedDown(String)
  MasterSlaveConnectionFailure(String)
  FailPointEnabled(String)
  NoShardingEnabled(String)
  BalancerInterrupted(String)
  ViewPipelineMaxSizeExceeded(String)
  InvalidIndexSpecificationOption(String)
  ReplicaSetMonitorRemoved(String)
  ChunkRangeCleanupPending(String)
  CannotBuildIndexKeys(String)
  NetworkInterfaceExceededTimeLimit(String)
  ShardingStateNotInitialized(String)
  TimeProofMismatch(String)
  ClusterTimeFailsRateLimiter(String)
  NoSuchSession(String)
  InvalidUUID(String)
  TooManyLocks(String)
  StaleClusterTime(String)
  CannotVerifyAndSignLogicalTime(String)
  KeyNotFound(String)
  IncompatibleRollbackAlgorithm(String)
  DuplicateSession(String)
  AuthenticationRestrictionUnmet(String)
  DatabaseDropPending(String)
  ElectionInProgress(String)
  IncompleteTransactionHistory(String)
  UpdateOperationFailed(String)
  FTDCPathNotSet(String)
  FTDCPathAlreadySet(String)
  IndexModified(String)
  CloseChangeStream(String)
  IllegalOpMsgFlag(String)
  QueryFeatureNotAllowed(String)
  TransactionTooOld(String)
  AtomicityFailure(String)
  CannotImplicitlyCreateCollection(String)
  SessionTransferIncomplete(String)
  MustDowngrade(String)
  DNSHostNotFound(String)
  DNSProtocolError(String)
  MaxSubPipelineDepthExceeded(String)
  TooManyDocumentSequences(String)
  RetryChangeStream(String)
  InternalErrorNotSupported(String)
  ForTestingErrorExtraInfo(String)
  CursorKilled(String)
  NotImplemented(String)
  SnapshotTooOld(String)
  DNSRecordTypeMismatch(String)
  ConversionFailure(String)
  CannotCreateCollection(String)
  IncompatibleWithUpgradedServer(String)
  BrokenPromise(String)
  SnapshotUnavailable(String)
  ProducerConsumerQueueBatchTooLarge(String)
  ProducerConsumerQueueEndClosed(String)
  StaleDbVersion(String)
  StaleChunkHistory(String)
  NoSuchTransaction(String)
  ReentrancyNotAllowed(String)
  FreeMonHttpInFlight(String)
  FreeMonHttpTemporaryFailure(String)
  FreeMonHttpPermanentFailure(String)
  TransactionCommitted(String)
  TransactionTooLarge(String)
  UnknownFeatureCompatibilityVersion(String)
  KeyedExecutorRetry(String)
  InvalidResumeToken(String)
  TooManyLogicalSessions(String)
  ExceededTimeLimit(String)
  OperationNotSupportedInTransaction(String)
  TooManyFilesOpen(String)
  OrphanedRangeCleanUpFailed(String)
  FailPointSetFailed(String)
  PreparedTransactionInProgress(String)
  CannotBackup(String)
  DataModifiedByRepair(String)
  RepairedReplicaSetNode(String)
  JSInterpreterFailureWithStack(String)
  MigrationConflict(String)
  ProducerConsumerQueueProducerQueueDepthExceeded(String)
  ProducerConsumerQueueConsumed(String)
  ExchangePassthrough(String)
  IndexBuildAborted(String)
  AlarmAlreadyFulfilled(String)
  UnsatisfiableCommitQuorum(String)
  ClientDisconnect(String)
  ChangeStreamFatalError(String)
  TransactionCoordinatorSteppingDown(String)
  TransactionCoordinatorReachedAbortDecision(String)
  WouldChangeOwningShard(String)
  ForTestingErrorExtraInfoWithExtraInfoInNamespace(String)
  IndexBuildAlreadyInProgress(String)
  ChangeStreamHistoryLost(String)
  TransactionCoordinatorDeadlineTaskCanceled(String)
  ChecksumMismatch(String)
  WaitForMajorityServiceEarlierOpTimeAvailable(String)
  TransactionExceededLifetimeLimitSeconds(String)
  NoQueryExecutionPlans(String)
  QueryExceededMemoryLimitNoDiskUseAllowed(String)
  InvalidSeedList(String)
  InvalidTopologyType(String)
  InvalidHeartBeatFrequency(String)
  TopologySetNameRequired(String)
  HierarchicalAcquisitionLevelViolation(String)
  InvalidServerType(String)
  OCSPCertificateStatusRevoked(String)
  RangeDeletionAbandonedBecauseCollectionWithUUIDDoesNotExist(
    String,
  )
  DataCorruptionDetected(String)
  OCSPCertificateStatusUnknown(String)
  SplitHorizonChange(String)
  ShardInvalidatedForTargeting(String)
  ReadThroughCacheLookupCanceled(String)
  RangeDeletionAbandonedBecauseTaskDocumentDoesNotExist(String)
  CurrentConfigNotCommittedYet(String)
  ExhaustCommandFinished(String)
  PeriodicJobIsStopped(String)
  TransactionCoordinatorCanceled(String)
  OperationIsKilledAndDelisted(String)
  ResumableRangeDeleterDisabled(String)
  ObjectIsBusy(String)
  TooStaleToSyncFromSource(String)
  QueryTrialRunCompleted(String)
  ConnectionPoolExpired(String)
  ForTestingOptionalErrorExtraInfo(String)
  MovePrimaryInProgress(String)
  TenantMigrationConflict(String)
  TenantMigrationCommitted(String)
  APIVersionError(String)
  APIStrictError(String)
  APIDeprecationError(String)
  TenantMigrationAborted(String)
  OplogQueryMinTsMissing(String)
  NoSuchTenantMigration(String)
  TenantMigrationAccessBlockerShuttingDown(String)
  TenantMigrationInProgress(String)
  SkipCommandExecution(String)
  FailedToRunWithReplyBuilder(String)
  CannotDowngrade(String)
  ServiceExecutorInShutdown(String)
  MechanismUnavailable(String)
  TenantMigrationForgotten(String)
  SocketException(String)
  CannotGrowDocumentInCappedNamespace(String)
  NotWritablePrimary(String)
  BSONObjectTooLarge(String)
  DuplicateKey(String)
  InterruptedAtShutdown(String)
  Interrupted(String)
  InterruptedDueToReplStateChange(String)
  BackgroundOperationInProgressForDatabase(String)
  BackgroundOperationInProgressForNamespace(String)
  MergeStageNoMatchingDocument(String)
  DatabaseDifferCase(String)
  StaleConfig(String)
  NotPrimaryNoSecondaryOk(String)
  NotPrimaryOrSecondary(String)
  OutOfDiskSpace(String)
  ClientMarkedKilled(String)
}

Constructors

  • OK(String)
  • InternalError(String)
  • BadValue(String)
  • NoSuchKey(String)
  • GraphContainsCycle(String)
  • HostUnreachable(String)
  • HostNotFound(String)
  • UnknownError(String)
  • FailedToParse(String)
  • CannotMutateObject(String)
  • UserNotFound(String)
  • UnsupportedFormat(String)
  • Unauthorized(String)
  • TypeMismatch(String)
  • Overflow(String)
  • InvalidLength(String)
  • ProtocolError(String)
  • AuthenticationFailed(String)
  • CannotReuseObject(String)
  • IllegalOperation(String)
  • EmptyArrayOperation(String)
  • InvalidBSON(String)
  • AlreadyInitialized(String)
  • LockTimeout(String)
  • RemoteValidationError(String)
  • NamespaceNotFound(String)
  • IndexNotFound(String)
  • PathNotViable(String)
  • NonExistentPath(String)
  • InvalidPath(String)
  • RoleNotFound(String)
  • RolesNotRelated(String)
  • PrivilegeNotFound(String)
  • CannotBackfillArray(String)
  • UserModificationFailed(String)
  • RemoteChangeDetected(String)
  • FileRenameFailed(String)
  • FileNotOpen(String)
  • FileStreamFailed(String)
  • ConflictingUpdateOperators(String)
  • FileAlreadyOpen(String)
  • LogWriteFailed(String)
  • CursorNotFound(String)
  • UserDataInconsistent(String)
  • LockBusy(String)
  • NoMatchingDocument(String)
  • NamespaceExists(String)
  • InvalidRoleModification(String)
  • MaxTimeMSExpired(String)
  • ManualInterventionRequired(String)
  • DollarPrefixedFieldName(String)
  • InvalidIdField(String)
  • NotSingleValueField(String)
  • InvalidDBRef(String)
  • EmptyFieldName(String)
  • DottedFieldName(String)
  • RoleModificationFailed(String)
  • CommandNotFound(String)
  • ShardKeyNotFound(String)
  • OplogOperationUnsupported(String)
  • StaleShardVersion(String)
  • WriteConcernFailed(String)
  • MultipleErrorsOccurred(String)
  • ImmutableField(String)
  • CannotCreateIndex(String)
  • IndexAlreadyExists(String)
  • AuthSchemaIncompatible(String)
  • ShardNotFound(String)
  • ReplicaSetNotFound(String)
  • InvalidOptions(String)
  • InvalidNamespace(String)
  • NodeNotFound(String)
  • WriteConcernLegacyOK(String)
  • NoReplicationEnabled(String)
  • OperationIncomplete(String)
  • CommandResultSchemaViolation(String)
  • UnknownReplWriteConcern(String)
  • RoleDataInconsistent(String)
  • NoMatchParseContext(String)
  • NoProgressMade(String)
  • RemoteResultsUnavailable(String)
  • IndexOptionsConflict(String)
  • IndexKeySpecsConflict(String)
  • CannotSplit(String)
  • NetworkTimeout(String)
  • CallbackCanceled(String)
  • ShutdownInProgress(String)
  • SecondaryAheadOfPrimary(String)
  • InvalidReplicaSetConfig(String)
  • NotYetInitialized(String)
  • NotSecondary(String)
  • OperationFailed(String)
  • NoProjectionFound(String)
  • DBPathInUse(String)
  • UnsatisfiableWriteConcern(String)
  • OutdatedClient(String)
  • IncompatibleAuditMetadata(String)
  • NewReplicaSetConfigurationIncompatible(String)
  • NodeNotElectable(String)
  • IncompatibleShardingMetadata(String)
  • DistributedClockSkewed(String)
  • LockFailed(String)
  • InconsistentReplicaSetNames(String)
  • ConfigurationInProgress(String)
  • CannotInitializeNodeWithData(String)
  • NotExactValueField(String)
  • WriteConflict(String)
  • InitialSyncFailure(String)
  • InitialSyncOplogSourceMissing(String)
  • CommandNotSupported(String)
  • DocTooLargeForCapped(String)
  • ConflictingOperationInProgress(String)
  • NamespaceNotSharded(String)
  • InvalidSyncSource(String)
  • OplogStartMissing(String)
  • DocumentValidationFailure(String)
  • NotAReplicaSet(String)
  • IncompatibleElectionProtocol(String)
  • CommandFailed(String)
  • RPCProtocolNegotiationFailed(String)
  • UnrecoverableRollbackError(String)
  • LockNotFound(String)
  • LockStateChangeFailed(String)
  • SymbolNotFound(String)
  • FailedToSatisfyReadPreference(String)
  • ReadConcernMajorityNotAvailableYet(String)
  • StaleTerm(String)
  • CappedPositionLost(String)
  • IncompatibleShardingConfigVersion(String)
  • RemoteOplogStale(String)
  • JSInterpreterFailure(String)
  • InvalidSSLConfiguration(String)
  • SSLHandshakeFailed(String)
  • JSUncatchableError(String)
  • CursorInUse(String)
  • IncompatibleCatalogManager(String)
  • PooledConnectionsDropped(String)
  • ExceededMemoryLimit(String)
  • ZLibError(String)
  • ReadConcernMajorityNotEnabled(String)
  • NoConfigPrimary(String)
  • StaleEpoch(String)
  • OperationCannotBeBatched(String)
  • OplogOutOfOrder(String)
  • ChunkTooBig(String)
  • InconsistentShardIdentity(String)
  • CannotApplyOplogWhilePrimary(String)
  • CanRepairToDowngrade(String)
  • MustUpgrade(String)
  • DurationOverflow(String)
  • MaxStalenessOutOfRange(String)
  • IncompatibleCollationVersion(String)
  • CollectionIsEmpty(String)
  • ZoneStillInUse(String)
  • InitialSyncActive(String)
  • ViewDepthLimitExceeded(String)
  • CommandNotSupportedOnView(String)
  • OptionNotSupportedOnView(String)
  • InvalidPipelineOperator(String)
  • CommandOnShardedViewNotSupportedOnMongod(String)
  • TooManyMatchingDocuments(String)
  • CannotIndexParallelArrays(String)
  • TransportSessionClosed(String)
  • TransportSessionNotFound(String)
  • TransportSessionUnknown(String)
  • QueryPlanKilled(String)
  • FileOpenFailed(String)
  • ZoneNotFound(String)
  • RangeOverlapConflict(String)
  • WindowsPdhError(String)
  • BadPerfCounterPath(String)
  • AmbiguousIndexKeyPattern(String)
  • InvalidViewDefinition(String)
  • ClientMetadataMissingField(String)
  • ClientMetadataAppNameTooLarge(String)
  • ClientMetadataDocumentTooLarge(String)
  • ClientMetadataCannotBeMutated(String)
  • LinearizableReadConcernError(String)
  • IncompatibleServerVersion(String)
  • PrimarySteppedDown(String)
  • MasterSlaveConnectionFailure(String)
  • FailPointEnabled(String)
  • NoShardingEnabled(String)
  • BalancerInterrupted(String)
  • ViewPipelineMaxSizeExceeded(String)
  • InvalidIndexSpecificationOption(String)
  • ReplicaSetMonitorRemoved(String)
  • ChunkRangeCleanupPending(String)
  • CannotBuildIndexKeys(String)
  • NetworkInterfaceExceededTimeLimit(String)
  • ShardingStateNotInitialized(String)
  • TimeProofMismatch(String)
  • ClusterTimeFailsRateLimiter(String)
  • NoSuchSession(String)
  • InvalidUUID(String)
  • TooManyLocks(String)
  • StaleClusterTime(String)
  • CannotVerifyAndSignLogicalTime(String)
  • KeyNotFound(String)
  • IncompatibleRollbackAlgorithm(String)
  • DuplicateSession(String)
  • AuthenticationRestrictionUnmet(String)
  • DatabaseDropPending(String)
  • ElectionInProgress(String)
  • IncompleteTransactionHistory(String)
  • UpdateOperationFailed(String)
  • FTDCPathNotSet(String)
  • FTDCPathAlreadySet(String)
  • IndexModified(String)
  • CloseChangeStream(String)
  • IllegalOpMsgFlag(String)
  • QueryFeatureNotAllowed(String)
  • TransactionTooOld(String)
  • AtomicityFailure(String)
  • CannotImplicitlyCreateCollection(String)
  • SessionTransferIncomplete(String)
  • MustDowngrade(String)
  • DNSHostNotFound(String)
  • DNSProtocolError(String)
  • MaxSubPipelineDepthExceeded(String)
  • TooManyDocumentSequences(String)
  • RetryChangeStream(String)
  • InternalErrorNotSupported(String)
  • ForTestingErrorExtraInfo(String)
  • CursorKilled(String)
  • NotImplemented(String)
  • SnapshotTooOld(String)
  • DNSRecordTypeMismatch(String)
  • ConversionFailure(String)
  • CannotCreateCollection(String)
  • IncompatibleWithUpgradedServer(String)
  • BrokenPromise(String)
  • SnapshotUnavailable(String)
  • ProducerConsumerQueueBatchTooLarge(String)
  • ProducerConsumerQueueEndClosed(String)
  • StaleDbVersion(String)
  • StaleChunkHistory(String)
  • NoSuchTransaction(String)
  • ReentrancyNotAllowed(String)
  • FreeMonHttpInFlight(String)
  • FreeMonHttpTemporaryFailure(String)
  • FreeMonHttpPermanentFailure(String)
  • TransactionCommitted(String)
  • TransactionTooLarge(String)
  • UnknownFeatureCompatibilityVersion(String)
  • KeyedExecutorRetry(String)
  • InvalidResumeToken(String)
  • TooManyLogicalSessions(String)
  • ExceededTimeLimit(String)
  • OperationNotSupportedInTransaction(String)
  • TooManyFilesOpen(String)
  • OrphanedRangeCleanUpFailed(String)
  • FailPointSetFailed(String)
  • PreparedTransactionInProgress(String)
  • CannotBackup(String)
  • DataModifiedByRepair(String)
  • RepairedReplicaSetNode(String)
  • JSInterpreterFailureWithStack(String)
  • MigrationConflict(String)
  • ProducerConsumerQueueProducerQueueDepthExceeded(String)
  • ProducerConsumerQueueConsumed(String)
  • ExchangePassthrough(String)
  • IndexBuildAborted(String)
  • AlarmAlreadyFulfilled(String)
  • UnsatisfiableCommitQuorum(String)
  • ClientDisconnect(String)
  • ChangeStreamFatalError(String)
  • TransactionCoordinatorSteppingDown(String)
  • TransactionCoordinatorReachedAbortDecision(String)
  • WouldChangeOwningShard(String)
  • ForTestingErrorExtraInfoWithExtraInfoInNamespace(String)
  • IndexBuildAlreadyInProgress(String)
  • ChangeStreamHistoryLost(String)
  • TransactionCoordinatorDeadlineTaskCanceled(String)
  • ChecksumMismatch(String)
  • WaitForMajorityServiceEarlierOpTimeAvailable(String)
  • TransactionExceededLifetimeLimitSeconds(String)
  • NoQueryExecutionPlans(String)
  • QueryExceededMemoryLimitNoDiskUseAllowed(String)
  • InvalidSeedList(String)
  • InvalidTopologyType(String)
  • InvalidHeartBeatFrequency(String)
  • TopologySetNameRequired(String)
  • HierarchicalAcquisitionLevelViolation(String)
  • InvalidServerType(String)
  • OCSPCertificateStatusRevoked(String)
  • RangeDeletionAbandonedBecauseCollectionWithUUIDDoesNotExist(
      String,
    )
  • DataCorruptionDetected(String)
  • OCSPCertificateStatusUnknown(String)
  • SplitHorizonChange(String)
  • ShardInvalidatedForTargeting(String)
  • ReadThroughCacheLookupCanceled(String)
  • RangeDeletionAbandonedBecauseTaskDocumentDoesNotExist(String)
  • CurrentConfigNotCommittedYet(String)
  • ExhaustCommandFinished(String)
  • PeriodicJobIsStopped(String)
  • TransactionCoordinatorCanceled(String)
  • OperationIsKilledAndDelisted(String)
  • ResumableRangeDeleterDisabled(String)
  • ObjectIsBusy(String)
  • TooStaleToSyncFromSource(String)
  • QueryTrialRunCompleted(String)
  • ConnectionPoolExpired(String)
  • ForTestingOptionalErrorExtraInfo(String)
  • MovePrimaryInProgress(String)
  • TenantMigrationConflict(String)
  • TenantMigrationCommitted(String)
  • APIVersionError(String)
  • APIStrictError(String)
  • APIDeprecationError(String)
  • TenantMigrationAborted(String)
  • OplogQueryMinTsMissing(String)
  • NoSuchTenantMigration(String)
  • TenantMigrationAccessBlockerShuttingDown(String)
  • TenantMigrationInProgress(String)
  • SkipCommandExecution(String)
  • FailedToRunWithReplyBuilder(String)
  • CannotDowngrade(String)
  • ServiceExecutorInShutdown(String)
  • MechanismUnavailable(String)
  • TenantMigrationForgotten(String)
  • SocketException(String)
  • CannotGrowDocumentInCappedNamespace(String)
  • NotWritablePrimary(String)
  • BSONObjectTooLarge(String)
  • DuplicateKey(String)
  • InterruptedAtShutdown(String)
  • Interrupted(String)
  • InterruptedDueToReplStateChange(String)
  • BackgroundOperationInProgressForDatabase(String)
  • BackgroundOperationInProgressForNamespace(String)
  • MergeStageNoMatchingDocument(String)
  • DatabaseDifferCase(String)
  • StaleConfig(String)
  • NotPrimaryNoSecondaryOk(String)
  • NotPrimaryOrSecondary(String)
  • OutOfDiskSpace(String)
  • ClientMarkedKilled(String)
pub type WriteError {
  WriteError(Int, String, bson.Value)
}

Constructors

  • WriteError(Int, String, bson.Value)

Constants

pub const code_to_server_error: List(
  #(Int, fn(String) -> MongoServerError),
)

Functions

pub fn is_not_primary_error(error: MongoServerError) -> Bool
pub fn is_retriable_error(error: MongoServerError) -> Bool
Search Document