Exceptions
PHP Manual

The MongoResultException class

(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 {
/* Свойства */
public $document ;
/* Наследуемые свойства */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
/* Методы */
public array getDocument ( void )
}

Свойства

document

The raw result document as an array.

Содержание


Exceptions
PHP Manual