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\Monitoring\CommandFailedEvent::getDurationMicrosMongoDB\Driver\Monitoring\CommandFailedEvent::getHost>
^MongoDB\Driver\Monitoring\CommandFailedEventLast updated: Mon, 26 Oct 2026

MongoDB\Driver\Monitoring\CommandFailedEvent::getError

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getError — Returns the Exception associated with the failed command

Description

final public function MongoDB\Driver\Monitoring\CommandFailedEvent::getError(): Exception

Parameters

This function has no parameters.

Return Values

Returns the Exception associated with the failed command.

Errors/Exceptions


<MongoDB\Driver\Monitoring\CommandFailedEvent::getDurationMicrosMongoDB\Driver\Monitoring\CommandFailedEvent::getHost>
^MongoDB\Driver\Monitoring\CommandFailedEventLast updated: Mon, 26 Oct 2026