ref:bulkwriteexception-resultcontent:|If a :php:`MongoDB\\Driver\\Exception\\BulkWriteException<mongodb-driver-exception-bulkwriteexception>` is thrown, users should call:php:`getWriteResult() <mongodb-driver-writeexception.getwriteresult>` andinspect the returned :php:`MongoDB\\Driver\\WriteResult<mongodb-driver-writeresult>` object to determine the nature of the error.For example, a write operation may have been successfully applied to theprimary server but failed to satisfy the write concern (e.g. replication tooktoo long). Alternatively, a write operation may have failed outright (e.g.unique key violation).---ref:bulkwriteexception-orderedcontent:|In the case of a bulk write, the result may indicate multiple successful writeoperations and/or errors. If the ``ordered`` option is ``true``, someoperations may have succeeded before the first error was encountered and theexception thrown. If the ``ordered`` option is ``false``, multiple errors mayhave been encountered....