MongoUnexpectedServerResponseError | mongodb (original) (raw)
Hierarchy (view full)
- MongoRuntimeError
- MongoUnexpectedServerResponseError
Index
Constructors
constructor
- new MongoUnexpectedServerResponseError(message, options?): MongoUnexpectedServerResponseError
Parameters
- message: string
Optional
options: {
cause?: Error;
}
* #####Optional
cause?: Error
Returns MongoUnexpectedServerResponseError
Properties
Optional
cause
cause?: Error
Optional
code
code?: string | number
Optional
connectionGeneration
connectionGeneration?: number
message
message: string
Optional
stack
stack?: string
Optional
topologyVersion
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