Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Exception\CommandExceptionMongoDB\Driver\Exception\ConnectionException>
^MongoDB\Driver\Exception\CommandExceptionLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Exception\CommandException::getResultDocument

(mongodb >= 1.5.0)

MongoDB\Driver\Exception\CommandException::getResultDocument — Returns the result document for the failed command

Description

final public function MongoDB\Driver\Exception\CommandException::getResultDocument(): object

Returns the result document for the failed command.

Parameters

This function has no parameters.

Return Values

The result document for the failed command.

See Also


<MongoDB\Driver\Exception\CommandExceptionMongoDB\Driver\Exception\ConnectionException>
^MongoDB\Driver\Exception\CommandExceptionLast updated: Mon, 26 Oct 2026