The MongoDB\Driver\WriteError class
The MongoDB\Driver\WriteError class encapsulates information about a write error and may be returned as an array element from MongoDB\Driver\WriteResult::getWriteErrors.
Intro
The MongoDB\Driver\WriteError class encapsulates information about a write error and may be returned as an array element from MongoDB\Driver\WriteResult::getWriteErrors.
Class synopsis
Properties
messageThe error message.
codeThe error code.
indexThe index of the write operation within the
MongoDB\Driver\BulkWritethat caused the error.infoAdditional information for the error, or null if not available.
Changelog
| Version | Description |
|---|---|
| PECL mongodb 2.3.0 | Added public readonly properties. |
Writeerror