MongoDB Driver API for Node.js (original) (raw)

Class: MongoTimeoutError

MongoTimeoutError

An error signifying a client-side timeout event

new MongoTimeoutError(message, reason)

Name Type Description
message Error|string object
reason string|object optional The reason the timeout occured
Properties:
Name Type Argument Description
message string The error message
reason string An optional reason context for the timeout, generally an error saved during flow of monitoring and selecting servers

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