Documentation ¶
Index ¶
- func IsConnectionFatalMessageParseError(e ErrorCode) bool
- func IsExceededTimeLimitError(e ErrorCode) bool
- func IsInterruption(e ErrorCode) bool
- func IsNeedRetargettingError(e ErrorCode) bool
- func IsNetworkError(e ErrorCode) bool
- func IsNotMasterError(e ErrorCode) bool
- func IsShutdownError(e ErrorCode) bool
- func IsSnapshotError(e ErrorCode) bool
- func IsStaleShardVersionError(e ErrorCode) bool
- func IsWriteConcernError(e ErrorCode) bool
- type ErrorCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInterruption ¶
func IsNeedRetargettingError ¶
func IsNetworkError ¶
func IsNotMasterError ¶
func IsShutdownError ¶
func IsSnapshotError ¶
func IsWriteConcernError ¶
Types ¶
type ErrorCode ¶
type ErrorCode int
const ( OK ErrorCode = 0 InternalError ErrorCode = 1 BadValue ErrorCode = 2 OBSOLETE_DuplicateKey ErrorCode = 3 NoSuchKey ErrorCode = 4 GraphContainsCycle ErrorCode = 5 HostUnreachable ErrorCode = 6 HostNotFound ErrorCode = 7 UnknownError ErrorCode = 8 FailedToParse ErrorCode = 9 CannotMutateObject ErrorCode = 10 UserNotFound ErrorCode = 11 UnsupportedFormat ErrorCode = 12 TypeMismatch ErrorCode = 14 Overflow ErrorCode = 15 InvalidLength ErrorCode = 16 ProtocolError ErrorCode = 17 AuthenticationFailed ErrorCode = 18 CannotReuseObject ErrorCode = 19 IllegalOperation ErrorCode = 20 EmptyArrayOperation ErrorCode = 21 InvalidBSON ErrorCode = 22 AlreadyInitialized ErrorCode = 23 LockTimeout ErrorCode = 24 RemoteValidationError ErrorCode = 25 NamespaceNotFound ErrorCode = 26 IndexNotFound ErrorCode = 27 PathNotViable ErrorCode = 28 NonExistentPath ErrorCode = 29 InvalidPath ErrorCode = 30 RoleNotFound ErrorCode = 31 RolesNotRelated ErrorCode = 32 PrivilegeNotFound ErrorCode = 33 CannotBackfillArray ErrorCode = 34 UserModificationFailed ErrorCode = 35 RemoteChangeDetected ErrorCode = 36 FileRenameFailed ErrorCode = 37 FileNotOpen ErrorCode = 38 FileStreamFailed ErrorCode = 39 ConflictingUpdateOperators ErrorCode = 40 FileAlreadyOpen ErrorCode = 41 LogWriteFailed ErrorCode = 42 CursorNotFound ErrorCode = 43 UserDataInconsistent ErrorCode = 45 LockBusy ErrorCode = 46 NoMatchingDocument ErrorCode = 47 NamespaceExists ErrorCode = 48 InvalidRoleModification ErrorCode = 49 MaxTimeMSExpired ErrorCode = 50 ManualInterventionRequired ErrorCode = 51 DollarPrefixedFieldName ErrorCode = 52 InvalidIdField ErrorCode = 53 NotSingleValueField ErrorCode = 54 InvalidDBRef ErrorCode = 55 EmptyFieldName ErrorCode = 56 DottedFieldName ErrorCode = 57 RoleModificationFailed ErrorCode = 58 CommandNotFound ErrorCode = 59 OBSOLETE_DatabaseNotFound ErrorCode = 60 ShardKeyNotFound ErrorCode = 61 OplogOperationUnsupported ErrorCode = 62 StaleShardVersion ErrorCode = 63 WriteConcernFailed ErrorCode = 64 MultipleErrorsOccurred ErrorCode = 65 ImmutableField ErrorCode = 66 CannotCreateIndex ErrorCode = 67 IndexAlreadyExists ErrorCode = 68 AuthSchemaIncompatible ErrorCode = 69 ShardNotFound ErrorCode = 70 ReplicaSetNotFound ErrorCode = 71 InvalidOptions ErrorCode = 72 InvalidNamespace ErrorCode = 73 NodeNotFound ErrorCode = 74 WriteConcernLegacyOK ErrorCode = 75 NoReplicationEnabled ErrorCode = 76 OperationIncomplete ErrorCode = 77 CommandResultSchemaViolation ErrorCode = 78 UnknownReplWriteConcern ErrorCode = 79 RoleDataInconsistent ErrorCode = 80 NoMatchParseContext ErrorCode = 81 NoProgressMade ErrorCode = 82 DuplicateKeyValue ErrorCode = 84 IndexOptionsConflict ErrorCode = 85 IndexKeySpecsConflict ErrorCode = 86 CannotSplit ErrorCode = 87 SplitFailed_OBSOLETE ErrorCode = 88 NetworkTimeout ErrorCode = 89 CallbackCanceled ErrorCode = 90 ShutdownInProgress ErrorCode = 91 SecondaryAheadOfPrimary ErrorCode = 92 InvalidReplicaSetConfig ErrorCode = 93 NotYetInitialized ErrorCode = 94 NotSecondary ErrorCode = 95 OperationFailed ErrorCode = 96 NoProjectionFound ErrorCode = 97 DBPathInUse ErrorCode = 98 CannotSatisfyWriteConcern ErrorCode = 100 OutdatedClient ErrorCode = 101 IncompatibleAuditMetadata ErrorCode = 102 NewReplicaSetConfigurationIncompatible ErrorCode = 103 NodeNotElectable ErrorCode = 104 IncompatibleShardingMetadata ErrorCode = 105 DistributedClockSkewed ErrorCode = 106 LockFailed ErrorCode = 107 InconsistentReplicaSetNames ErrorCode = 108 ConfigurationInProgress ErrorCode = 109 CannotInitializeNodeWithData ErrorCode = 110 NotExactValueField ErrorCode = 111 WriteConflict ErrorCode = 112 InitialSyncFailure ErrorCode = 113 InitialSyncOplogSourceMissing ErrorCode = 114 CommandNotSupported ErrorCode = 115 DocTooLargeForCapped ErrorCode = 116 ConflictingOperationInProgress ErrorCode = 117 NamespaceNotSharded ErrorCode = 118 InvalidSyncSource ErrorCode = 119 OplogStartMissing ErrorCode = 120 DocumentValidationFailure ErrorCode = 121 OBSOLETE_ReadAfterOptimeTimeout ErrorCode = 122 NotAReplicaSet ErrorCode = 123 IncompatibleElectionProtocol ErrorCode = 124 CommandFailed ErrorCode = 125 RPCProtocolNegotiationFailed ErrorCode = 126 UnrecoverableRollbackError ErrorCode = 127 LockNotFound ErrorCode = 128 LockStateChangeFailed ErrorCode = 129 SymbolNotFound ErrorCode = 130 RLPInitializationFailed ErrorCode = 131 OBSOLETE_ConfigServersInconsistent ErrorCode = 132 FailedToSatisfyReadPreference ErrorCode = 133 ReadConcernMajorityNotAvailableYet ErrorCode = 134 StaleTerm ErrorCode = 135 CappedPositionLost ErrorCode = 136 IncompatibleShardingConfigVersion ErrorCode = 137 RemoteOplogStale ErrorCode = 138 JSInterpreterFailure ErrorCode = 139 InvalidSSLConfiguration ErrorCode = 140 SSLHandshakeFailed ErrorCode = 141 JSUncatchableError ErrorCode = 142 CursorInUse ErrorCode = 143 IncompatibleCatalogManager ErrorCode = 144 PooledConnectionsDropped ErrorCode = 145 ExceededMemoryLimit ErrorCode = 146 ZLibError ErrorCode = 147 ReadConcernMajorityNotEnabled ErrorCode = 148 NoConfigMaster ErrorCode = 149 StaleEpoch ErrorCode = 150 OperationCannotBeBatched ErrorCode = 151 OplogOutOfOrder ErrorCode = 152 ChunkTooBig ErrorCode = 153 InconsistentShardIdentity ErrorCode = 154 CannotApplyOplogWhilePrimary ErrorCode = 155 NeedsDocumentMove ErrorCode = 156 CanRepairToDowngrade ErrorCode = 157 MustUpgrade ErrorCode = 158 DurationOverflow ErrorCode = 159 MaxStalenessOutOfRange ErrorCode = 160 IncompatibleCollationVersion ErrorCode = 161 CollectionIsEmpty ErrorCode = 162 ZoneStillInUse ErrorCode = 163 InitialSyncActive ErrorCode = 164 ViewDepthLimitExceeded ErrorCode = 165 CommandNotSupportedOnView ErrorCode = 166 OptionNotSupportedOnView ErrorCode = 167 InvalidPipelineOperator ErrorCode = 168 CommandOnShardedViewNotSupportedOnMongod ErrorCode = 169 TooManyMatchingDocuments ErrorCode = 170 CannotIndexParallelArrays ErrorCode = 171 TransportSessionClosed ErrorCode = 172 TransportSessionNotFound ErrorCode = 173 TransportSessionUnknown ErrorCode = 174 QueryPlanKilled ErrorCode = 175 FileOpenFailed ErrorCode = 176 ZoneNotFound ErrorCode = 177 RangeOverlapConflict ErrorCode = 178 WindowsPdhError ErrorCode = 179 BadPerfCounterPath ErrorCode = 180 AmbiguousIndexKeyPattern ErrorCode = 181 InvalidViewDefinition ErrorCode = 182 ClientMetadataMissingField ErrorCode = 183 ClientMetadataAppNameTooLarge ErrorCode = 184 ClientMetadataDocumentTooLarge ErrorCode = 185 ClientMetadataCannotBeMutated ErrorCode = 186 LinearizableReadConcernError ErrorCode = 187 IncompatibleServerVersion ErrorCode = 188 PrimarySteppedDown ErrorCode = 189 MasterSlaveConnectionFailure ErrorCode = 190 OBSOLETE_BalancerLostDistributedLock ErrorCode = 191 FailPointEnabled ErrorCode = 192 NoShardingEnabled ErrorCode = 193 BalancerInterrupted ErrorCode = 194 ViewPipelineMaxSizeExceeded ErrorCode = 195 InvalidIndexSpecificationOption ErrorCode = 197 OBSOLETE_ReceivedOpReplyMessage ErrorCode = 198 ReplicaSetMonitorRemoved ErrorCode = 199 ChunkRangeCleanupPending ErrorCode = 200 CannotBuildIndexKeys ErrorCode = 201 NetworkInterfaceExceededTimeLimit ErrorCode = 202 ShardingStateNotInitialized ErrorCode = 203 TimeProofMismatch ErrorCode = 204 ClusterTimeFailsRateLimiter ErrorCode = 205 NoSuchSession ErrorCode = 206 InvalidUUID ErrorCode = 207 TooManyLocks ErrorCode = 208 StaleClusterTime ErrorCode = 209 CannotVerifyAndSignLogicalTime ErrorCode = 210 KeyNotFound ErrorCode = 211 IncompatibleRollbackAlgorithm ErrorCode = 212 DuplicateSession ErrorCode = 213 AuthenticationRestrictionUnmet ErrorCode = 214 DatabaseDropPending ErrorCode = 215 ElectionInProgress ErrorCode = 216 IncompleteTransactionHistory ErrorCode = 217 UpdateOperationFailed ErrorCode = 218 FTDCPathNotSet ErrorCode = 219 FTDCPathAlreadySet ErrorCode = 220 IndexModified ErrorCode = 221 CloseChangeStream ErrorCode = 222 IllegalOpMsgFlag ErrorCode = 223 QueryFeatureNotAllowed ErrorCode = 224 TransactionTooOld ErrorCode = 225 AtomicityFailure ErrorCode = 226 CannotImplicitlyCreateCollection ErrorCode = 227 SessionTransferIncomplete ErrorCode = 228 MustDowngrade ErrorCode = 229 DNSHostNotFound ErrorCode = 230 DNSProtocolError ErrorCode = 231 MaxSubPipelineDepthExceeded ErrorCode = 232 TooManyDocumentSequences ErrorCode = 233 RetryChangeStream ErrorCode = 234 InternalErrorNotSupported ErrorCode = 235 ForTestingErrorExtraInfo ErrorCode = 236 CursorKilled ErrorCode = 237 NotImplemented ErrorCode = 238 SnapshotTooOld ErrorCode = 239 DNSRecordTypeMismatch ErrorCode = 240 ConversionFailure ErrorCode = 241 CannotCreateCollection ErrorCode = 242 IncompatibleWithUpgradedServer ErrorCode = 243 NOT_YET_AVAILABLE_TransactionAborted ErrorCode = 244 BrokenPromise ErrorCode = 245 ProducerConsumerQueueBatchTooLarge ErrorCode = 247 ProducerConsumerQueueEndClosed ErrorCode = 248 StaleDbVersion ErrorCode = 249 StaleChunkHistory ErrorCode = 250 NoSuchTransaction ErrorCode = 251 ReentrancyNotAllowed ErrorCode = 252 FreeMonHttpInFlight ErrorCode = 253 FreeMonHttpTemporaryFailure ErrorCode = 254 FreeMonHttpPermanentFailure ErrorCode = 255 TransactionCommitted ErrorCode = 256 TransactionTooLarge ErrorCode = 257 UnknownFeatureCompatibilityVersion ErrorCode = 258 KeyedExecutorRetry ErrorCode = 259 InvalidResumeToken ErrorCode = 260 TooManyLogicalSessions ErrorCode = 261 ExceededTimeLimit ErrorCode = 262 OperationNotSupportedInTransaction ErrorCode = 263 TooManyFilesOpen ErrorCode = 264 FailPointSetFailed ErrorCode = 266 DataModifiedByRepair ErrorCode = 269 RepairedReplicaSetNode ErrorCode = 270 SocketException ErrorCode = 9001 OBSOLETE_RecvStaleConfig ErrorCode = 9996 CannotGrowDocumentInCappedNamespace ErrorCode = 10003 NotMaster ErrorCode = 10107 BSONObjectTooLarge ErrorCode = 10334 DuplicateKey ErrorCode = 11000 InterruptedAtShutdown ErrorCode = 11600 Interrupted ErrorCode = 11601 InterruptedDueToReplStateChange ErrorCode = 11602 BackgroundOperationInProgressForDatabase ErrorCode = 12586 BackgroundOperationInProgressForNamespace ErrorCode = 12587 OBSOLETE_PrepareConfigsFailed ErrorCode = 13104 DatabaseDifferCase ErrorCode = 13297 ShardKeyTooBig ErrorCode = 13334 StaleConfig ErrorCode = 13388 NotMasterNoSlaveOk ErrorCode = 13435 NotMasterOrSecondary ErrorCode = 13436 OutOfDiskSpace ErrorCode = 14031 KeyTooLong ErrorCode = 17280 )
Click to show internal directories.
Click to hide internal directories.