Class: MongoNetworkTimeoutError

MongoNetworkTimeoutError

An error indicating a network timeout occurred

new MongoNetworkTimeoutError(message)

Name Type Description
message Error | string | object

The error message

Properties:
Name Type Argument Description
message string

The error message

options.beforeHandshake object <optional>

Indicates the timeout happened before a connection handshake completed

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