MongoDB Driver API for Node.js (original) (raw)
Class: MongoParseError
MongoParseError
An error used when attempting to parse a value (like a connection string)
new MongoParseError(message)
Name | Type | Description |
---|---|---|
message | Error|string | object |
Properties:
Name | Type | Description |
---|---|---|
message | string | The error message |
Extends
Members
errmsg
Legacy name for server error responses
Methods
Checks the error to see if it has an error label
Name | Type | Description |
---|---|---|
label | string | The error label to check for |
Returns:
true if the error has the provided error label