MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent::getError

Returns the Exception associated with the failed heartbeat

Description

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

Parameters

This function has no parameters.

Return Values

Returns the Exception associated with the failed heartbeat.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.