PHP 7.2.7 Released


(PECL mongo >= 1.5.0)

MongoWriteConcernException::getDocumentGet the error document


public array MongoWriteConcernException::getDocument ( void )

Returns the actual response from the server that was interperated as an error.


This function has no parameters.

Return Values

A MongoDB document, if available, as an array.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top