/** * @param SingleConnectionInterface $connection Connection that generated the exception. * @param string $message Error message. * @param int $code Error code. * @param \Exception $innerException Inner exception for wrapping the original error. */ public function __construct(SingleConnectionInterface $connection, $message = null, $code = null, \Exception $innerException = null) { parent::__construct($message, $code, $innerException); $this->connection = $connection; }
public function __construct(IConnectionSingle $connection, $message = null, $code = null) { $this->_connection = $connection; parent::__construct($message, $code); }
public function __construct(Predis_Connection $connection, $message = null, $code = null) { $this->_connection = $connection; parent::__construct($message, $code); }
public function __construct(Predis_Connection $connection, $message = null, $code = null) { $this->_connection = $connection; //throw new Exception(500,$message); parent::__construct($message, $code); }