PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

The MongoResultException class

(PECL mongo >=1.3.0)

Introduction

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.

Class synopsis

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

Properties

document

The raw result document as an array.

Table of Contents

PHP Manual