MongoDB\Driver\Monitoring\CommandFailedEvent::getError

(mongodb >=1.3.0)

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

說明

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

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

Returns the Exception associated with the failed command.

錯誤/異常