123456789101112131415161718192021222324252627282930313233343536 |
- 'use strict';
- const MONGODB_ERROR_CODES = Object.freeze({
- HostUnreachable: 6,
- HostNotFound: 7,
- NetworkTimeout: 89,
- ShutdownInProgress: 91,
- PrimarySteppedDown: 189,
- ExceededTimeLimit: 262,
- SocketException: 9001,
- NotMaster: 10107,
- InterruptedAtShutdown: 11600,
- InterruptedDueToReplStateChange: 11602,
- NotMasterNoSlaveOk: 13435,
- NotMasterOrSecondary: 13436,
- StaleShardVersion: 63,
- StaleEpoch: 150,
- StaleConfig: 13388,
- RetryChangeStream: 234,
- FailedToSatisfyReadPreference: 133,
- CursorNotFound: 43,
- LegacyNotPrimary: 10058,
- WriteConcernFailed: 64,
- NamespaceNotFound: 26,
- IllegalOperation: 20,
- MaxTimeMSExpired: 50,
- UnknownReplWriteConcern: 79,
- UnsatisfiableWriteConcern: 100,
- DuplicateKey: 11000,
- CannotCreateIndex: 67,
- IndexOptionsConflict: 85,
- IndexKeySpecsConflict: 86,
- InvalidIndexSpecificationOption: 197
- });
- module.exports = Object.freeze({ MONGODB_ERROR_CODES });
|