MongoDB\Driver\Monitoring\CommandFailedEvent::getServer

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getServerReturns the Server on which the command was executed

說明

final public MongoDB\Driver\Monitoring\CommandFailedEvent::getServer(): MongoDB\Driver\Server

Returns the MongoDB\Driver\Server on which the command was executed.

參數(shù)

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

返回值

Returns the MongoDB\Driver\Server on which the command was executed.

錯誤/異常