MongoDB 错误代码
- E11000E11000 duplicate key error collection(E11000 集合中的重复键错误)
- 11000DuplicateKey(错误代码 11000)
- 13Unauthorized(错误代码 13)
- 18AuthenticationFailed(错误代码 18)
- 11600InterruptedAtShutdown(错误代码 11600)
- 50MaxTimeMSExpired(错误代码 50)
- 251NoSuchTransaction(错误代码 251)
- 112WriteConflict(错误代码 112)
- 133FailedToSatisfyReadPreference(错误代码 133)
- 6HostUnreachable(错误代码 6)
- 89NetworkTimeout(错误代码 89)
- 262ExceededTimeLimit(错误代码 262)
- 292QueryExceededMemoryLimitNoDiskUseAllowed(错误代码 292)
- 26NamespaceNotFound(错误代码 26)
- 43CursorNotFound(错误代码 43)
- 211KeyNotFound(错误代码 211)
- 121DocumentValidationFailure
- 40ConflictingUpdateOperators
- 66ImmutableField(无法更新 _id)
- 2BadValue
- 14TypeMismatch
- 10334BSONObjectTooLarge
- 46LockBusy
- 96OperationFailed
- 72InvalidOptions
- 9FailedToParse
- 134ReadConcernMajorityNotAvailableYet
- 202NetworkInterfaceExceededTimeLimit
- 31 RoleNotFoundRole not found(未找到角色)
- 263 OperationNotSupportedInTransactionOperation not supported inside a multi-document transaction(多文档事务中不支持该操作)
- 20 IllegalOperationIllegal operation(非法操作)
- 48 NamespaceExistsNamespace (collection) already exists(命名空间(集合)已存在)
- 11601 InterruptedOperation was interrupted(操作被中断)
- 85 IndexOptionsConflictIndex already exists with different options / different name(索引已存在但选项不同/名称不同)
- 67 CannotCreateIndexCannot create index(无法创建索引)
- 27 IndexNotFoundIndex not found(未找到索引)
- 79 UnknownReplWriteConcernUnknown replica set write concern(未知的副本集写关注)
- 10107 NotWritablePrimarynot master / not writable primary(不是 master / 不是可写的主节点)
- 91 ShutdownInProgressThe server is in the process of shutting down(服务器正在关闭)
- 189 PrimarySteppedDownPrimary stepped down while operation was in progress(操作进行期间主节点已降级)
- 24 LockTimeoutOperation exceeded time limit waiting for a lock(操作等待锁时超出时间限制)
- 7 HostNotFoundCould not find host(找不到主机)
- 175 QueryPlanKilledQuery plan killed during execution(查询计划在执行期间被终止)
- 11602 InterruptedDueToReplStateChangeOperation interrupted due to a replication state change(操作因复制状态变化而被中断)
- 136 CappedPositionLostCapped collection position lost(固定集合位置丢失)
- 28 PathNotViableCannot use the part of the path to traverse the element(无法使用路径的一部分遍历元素)
- 216 ElectionInProgressElectionInProgress
- 225 TransactionTooOldTransactionTooOld
- 246 SnapshotUnavailableSnapshotUnavailable
- 257 TransactionTooLargeTransactionTooLarge
- 276 IndexBuildAbortedIndexBuildAborted
- 86 IndexKeySpecsConflictIndexKeySpecsConflict
- 166 CommandNotSupportedOnViewCommandNotSupportedOnView
- 168 InvalidPipelineOperatorInvalidPipelineOperator
- 118 NamespaceNotShardedNamespaceNotSharded