Class: MongoNetworkError

MongoNetworkError

An error indicating an issue with the network, including TCP
errors and timeouts.

new MongoNetworkError(message)

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

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