(mongodb >=1.0.0)
The MongoDB\Driver\WriteError class encapsulates information about a write error and may be returned as an array element from MongoDB\Driver\WriteResult::getWriteErrors().
The error message.
The error code.
The index of the write operation within the MongoDB\Driver\BulkWrite that caused the error.
Additional information for the error, or null if not available.
| Version | Description |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |