Do not use this constructor!
Meant for internal use only.
Optionaloptions: { Optionalcause?: ErrorOptionalcauseOptionalcodeThis is a number in MongoServerError and a string in MongoDriverError
OptionalconnectionOptionalstackOptionaltopologyStatic OptionalprepareOptional override for formatting stack traces
StaticstackLegacy name for server error responses
An error generated when the user supplies malformed or unexpected arguments or when a required argument or field is not provided.