Class: MongoWriteConcernError

MongoWriteConcernError

new MongoWriteConcernError(message, result){MongoWriteConcernError}

An error thrown when the server reports a writeConcernError

Name Type Description
message Error | string | object

The error message

result object

The result document (provided if ok: 1)

Properties:
Name Type Argument Description
message string

The error message

result object <optional>

The result document (provided if ok: 1)

Returns:
MongoWriteConcernError instance

Extends