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

MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getError

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getError — Returns the Exception associated with the failed heartbeat

Description

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

Parameters

This function has no parameters.

Return Values

Returns the Exception associated with the failed heartbeat.

Errors/Exceptions


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