php8.5
Home/ Manual/ driver / exception/ The MongoDB\Driver\Exception\BulkWriteException class

The MongoDB\Driver\Exception\BulkWriteException class

Thrown when a bulk write operation fails.

Intro

Thrown when a bulk write operation fails.

Class synopsis

class MongoDB\Driver\Exception\BulkWriteException { }

Properties

writeResult

The MongoDB\Driver\WriteResult associated with the failed write operation.

Changelog

VersionDescription
PECL mongodb 2.3.0The writeResult property is now public readonly.
PECL mongodb 2.0.0This class now extends MongoDB\Driver\Exception\ServerException instead of MongoDB\Driver\Exception\WriteException.

Bulkwriteexception

In this section

Source: reference/mongodb/mongodb/driver/exception/bulkwriteexception.xml · from the official PHP manual (php/doc-en)