mirror of
https://github.com/predis/predis.git
synced 2026-08-22 15:10:57 +00:00
25 lines
563 B
PHP
25 lines
563 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) {
|
|
|
|
$this->_connection = $connection;
|
|
parent::__construct($message, $code, $innerException);
|
|
}
|
|
|
|
public function getConnection() {
|
|
return $this->_connection;
|
|
}
|
|
|
|
public function shouldResetConnection() {
|
|
return true;
|
|
}
|
|
}
|