Class: MongoTimeoutError

MongoTimeoutError

An error signifying a client-side timeout event

new MongoTimeoutError(message, reason)

Name Type Description
message Error | string | object

The error message

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

inherited hasErrorLabel(label){boolean}

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