mirror of
https://github.com/predis/predis.git
synced 2026-08-20 14:41:53 +00:00
21 lines
567 B
PHP
21 lines
567 B
PHP
<?php
|
|
|
|
namespace Predis;
|
|
|
|
use Predis\Network\IConnectionSingle;
|
|
|
|
abstract class CommunicationException extends PredisException {
|
|
// Communication errors
|
|
private $_connection;
|
|
|
|
public function __construct(IConnectionSingle $connection, $message = null,
|
|
$code = null, \Exception $innerException = null) {
|
|
|
|
$this->_connection = $connection;
|
|
parent::__construct($message, $code, $innerException);
|
|
}
|
|
|
|
public function getConnection() { return $this->_connection; }
|
|
public function shouldResetConnection() { return true; }
|
|
}
|