Please wait while we load your page...


Latest Version [8.00202205221] Last Updated [May-22-2022]


PHP Manual [The MongoResultException class]

Protect Your Website Today

PHP Manual || Exceptions

(PECL mongo >=1.3.0)

The MongoResultException is thrown by several command helpers (such as MongoCollection::findAndModify()) in the event of failure. The original result document is available through MongoResultException::getDocument().

MongoResultException extends MongoException {
/* Properties */
public document ;
/* Inherited properties */
protected string message ;
protected int code ;
protected string file ;
protected int line ;
/* Methods */
public getDocument ( void ) : array

The raw result document as an array.

PHP Manual || Exceptions