Sha256: d8ec961af4212ae9d58b64e15fbe75d8d160928fb8600484f7028e14744e3252

Contents?: true

Size: 563 Bytes

Versions: 7

Compression:

Stored size: 563 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appstats-0.25.1 doc/benchmarks/Predis/CommunicationException.php
appstats-0.25.0 doc/benchmarks/Predis/CommunicationException.php
appstats-0.24.0 doc/benchmarks/Predis/CommunicationException.php
appstats-0.23.5 doc/benchmarks/Predis/CommunicationException.php
appstats-0.23.4 doc/benchmarks/Predis/CommunicationException.php
appstats-0.23.3 doc/benchmarks/Predis/CommunicationException.php
appstats-0.23.2 doc/benchmarks/Predis/CommunicationException.php