(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\CommandFailedEvent::getError — Returns the Exception associated with the failed command
This function has no parameters.
Returns the Exception associated with the failed command.