Do not use this constructor!
Meant for internal use only.
Optional
options: { Optional
cause?: ErrorOptional
causeOptional
codeThis is a number in MongoServerError and a string in MongoDriverError
Optional
connectionOptional
stackOptional
topologyStatic
Optional
prepareOptional override for formatting stack traces
Static
stackLegacy name for server error responses
An error generated when the driver encounters unexpected input or reaches an unexpected/invalid internal state.