MongoServerError | mongodb (original) (raw)
Hierarchy (view full)
- MongoError
- MongoServerError
* MongoBulkWriteError
* MongoClientBulkWriteError
* MongoWriteConcernError
- MongoServerError
Indexable
- [key: string]: any
Index
Constructors
constructor
- new MongoServerError(message): MongoServerError
MongoServerError
Returns
Properties
Optional
cause
cause?: Error
Optional
code
code?: string | number
Optional
codeName
codeName?: string
Optional
connectionGeneration
connectionGeneration?: number
Optional
errInfo
errorResponse
message
message: string
Optional
ok
ok?: number
Optional
stack
stack?: string
Optional
topologyVersion
Optional
writeConcernError
Static
Optional
prepareStackTrace
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)
Static
stackTraceLimit
stackTraceLimit: number
Accessors
errmsg
- get errmsg(): string
Returns string
errorLabels
- get errorLabels(): string[]
Returns string[]
name
- get name(): string
Returns string
Methods
addErrorLabel
- addErrorLabel(label): void
Returns void
hasErrorLabel
- hasErrorLabel(label): boolean
Returns boolean
returns true if the error has the provided error label
Static
captureStackTrace
- captureStackTrace(targetObject, constructorOpt?): void
Parameters
- targetObject: object
Optional
constructorOpt: Function