new MongoError(message){MongoError}
Creates a new MongoError
| Name | Type | Description | 
|---|---|---|
| message | Error | string | object | The error message | 
Properties:
| Name | Type | Description | 
|---|---|---|
| message | string | The error message | 
| stack | string | The error call stack | 
Returns:
MongoError instanceExtends
- Error
Methods
- 
    staticMongoError.create(options){MongoError}
- 
    
    
    Creates a new MongoError object Name Type Description optionsError | string | object The options used to create the error. - Deprecated
- Use `new MongoError()` instead.
 
 Returns:MongoError instance