php8.5
Home/ Manual/ monitoring / serverheartbeatfailedevent/ MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getError

MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getError

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Returns the Exception associated with the failed heartbeat

Description

MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getError(): Exception

Parameters Parameters

Return Values

Returns the Exception associated with the failed heartbeat.

Errors/Exceptions

Source: reference/mongodb/mongodb/driver/monitoring/serverheartbeatfailedevent/geterror.xml · from the official PHP manual (php/doc-en)