Do not use this constructor!不要使用此构造函数!
Meant for internal use only.仅供内部使用。
This class is only meant to be constructed within the driver. 这个类只能在驱动程序中构造。This constructor is not subject to semantic versioning compatibility guarantees and may change at any time.此构造函数不受语义版本控制兼容性保证的约束,并且可能随时更改。
Optional
causeOptional
codeThis is a number in MongoServerError and a string in MongoDriverError这是MongoServerError中的一个数字,也是MongoDriverError中的字符串
Optional
connectionOptional
stackOptional
topologyStatic
Optional
prepareOptional override for formatting stack traces格式化堆栈跟踪的可选覆盖
Static
stackLegacy name for server error responses服务器错误响应的旧名称
Static
captureGenerated using TypeDoc
An error generated when the user supplies malformed or unexpected arguments or when a required argument or field is not provided.当用户提供格式错误或意外的参数,或者没有提供所需的参数或字段时,会生成错误。