php8.5
Home/ Manual/ monitoring / commandfailedevent/ MongoDB\Driver\Monitoring\CommandFailedEvent::getError

MongoDB\Driver\Monitoring\CommandFailedEvent::getError

PHP function Edit on GitHub ✎

(mongodb >=1.3.0)

Returns the Exception associated with the failed command

Description

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

Parameters Parameters

Return Values

Returns the Exception associated with the failed command.

Errors/Exceptions

See Also

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