Php/docs/mongowriteconcernexception.getdocument
From Get docs
MongoWriteConcernException::getDocument
(PECL mongo >= 1.5.0)
MongoWriteConcernException::getDocument — Get the error document
Description
public MongoWriteConcernException::getDocument ( ) : array
Returns the actual response from the server that was interperated as an error.
Parameters
This function has no parameters.
Return Values
A MongoDB document, if available, as an array.