Files
predis/lib/Predis/CommunicationException.php
T
2011-10-18 15:51:55 +02:00

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;
}
}