MongoDB\Driver\Monitoring\CommandFailedEvent::getError

MongoDB\Driver\Monitoring\CommandFailedEvent::getErrorReturns the Exception associated with the failed command

Description

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

Parameters

This function has no parameters.

Return Values

Returns the Exception associated with the failed command.

Errors/Exceptions