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