MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed

Notification method for a failed command

Description

abstract public void MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed(MongoDB\Driver\Monitoring\CommandFailedEvent $event)

If the subscriber is registered, this method is called when a command fails.

Parameters

event (MongoDB\Driver\Monitoring\CommandFailedEvent)

An event object encapsulating information about the failed command.

Return Values

No value is returned.

Errors/Exceptions

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

See Also