MONGORESULTEXCEPTION(3) 1 MONGORESULTEXCEPTION(3)
The MongoResultException class
INTRODUCTION
The MongoResultException is thrown by several command helpers (such as MongoCollection::findAndModify) in the event of failure. The origi-
nal result document is available through MongoResultException::getDocument.
CLASS SYNOPSIS
MongoResultException
MongoResultExceptionextends
MongoException
Properties
o public$document
Inherited properties
o protected string$message
o protected int$code
o protected string$file
o protected int$line
Methods
o public array MongoResultException::getDocument (void )
PROPERTIES
o $document
-The raw result document as an array.
PHP Documentation Group MONGORESULTEXCEPTION(3)