This is a number in MongoServerError and a string in MongoDriverError这是MongoServerError中的数字和MongoDriverError的字符串
Optional override for formatting stack traces格式化堆栈跟踪的可选替代
Legacy name for server error responses服务器错误响应的旧名称
Checks the error to see if it has an error label检查错误以查看它是否有错误标签
The error label to check for要检查的错误标签
returns true if the error has the provided error label如果错误具有提供的错误标签,则返回true
Create 在目标对象上创建.stack
property on a target object.stack
属性
Generated using TypeDoc
An error thrown when the user attempts to operate on a database or collection through a MongoClient that has not yet successfully called the "connect" method当用户试图通过尚未成功调用“connect”方法的MongoClient操作数据库或集合时引发的错误