Do not use this constructor!
Meant for internal use only.
OptionalcauseOptionalcodeThis is a number in MongoServerError and a string in MongoDriverError
OptionalcodeOptionalconnectionOptionalerrRaw error result document returned by server.
OptionalokThe result document
OptionalstackOptionaltopologyOptionalwriteStatic OptionalprepareOptional override for formatting stack traces
StaticstackLegacy name for server error responses
An error thrown when the server reports a writeConcernError