mirror of
https://github.com/predis/predis.git
synced 2026-08-19 15:02:16 +00:00
22 lines
538 B
PHP
22 lines
538 B
PHP
<?php
|
|
|
|
namespace Predis;
|
|
|
|
use Predis\Network\IConnection;
|
|
use Predis\Network\IConnectionSingle;
|
|
|
|
class CommunicationException extends PredisException {
|
|
// Communication errors
|
|
private $_connection;
|
|
|
|
public function __construct(IConnectionSingle $connection,
|
|
$message = null, $code = null) {
|
|
|
|
$this->_connection = $connection;
|
|
parent::__construct($message, $code);
|
|
}
|
|
|
|
public function getConnection() { return $this->_connection; }
|
|
public function shouldResetConnection() { return true; }
|
|
}
|