new MongoError(message){MongoError}
Creates a new MongoError
Name | Type | Description |
---|---|---|
message |
string |
The error message |
Returns:
MongoError instanceExtends
- Error
Methods
-
staticMongoError.create(options){MongoError}
-
Creates a new MongoError object
Name Type Description options
object The error options
Returns:
MongoError instance