class ResultException extends RuntimeException (View source)

ResultException is thrown when a database command fails.

This is similar to the driver's MongoResultException class, which cannot be be used due to inaccessibility of its result document property.

Methods

__construct(array $document)

Constructor.

array
getDocument()

Get the command result document.

Details

__construct(array $document)

Constructor.

Parameters

array $document Command result document

array getDocument()

Get the command result document.

Return Value

array