PHP - Manual: MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed
2024-12-20
(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\CommandSubscriber::commandFailed — Notification method for a failed command
$event
): voidIf the subscriber has been registered, the driver will call this method when a command has failed.
event
(MongoDB\Driver\Monitoring\CommandFailedEvent)An event object encapsulating information about the failed command.
没有返回值。
官方地址:https://www.php.net/manual/en/mongodb-driver-monitoring-commandsubscriber.commandfailed.php