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

Class: WriteConcernError

WriteConcernError

An error representing a failure by the server to apply the requested write concern to the bulk operation.

new WriteConcernError()

lib/bulk/common.js, line 298

Create a new WriteConcernError instance

NOTE: Internal Type, do not instantiate directly

Members

codenumber

Write concern error code.

errmsgstring

Write concern error message.

Methods

toJSON(){object}

lib/bulk/common.js, line 327

toString(){string}

lib/bulk/common.js, line 334