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