Do not use this constructor!
Meant for internal use only.
Optional
causeOptional
codeThis is a number in MongoServerError and a string in MongoDriverError
Optional
codeOptional
connectionOptional
errRaw error result document returned by server.
Optional
okThe result document
Optional
stackOptional
topologyOptional
writeStatic
Optional
prepareOptional override for formatting stack traces
Static
stackLegacy name for server error responses
An error thrown when the server reports a writeConcernError