PHP Класс Predis\CommunicationException

Автор: Daniele Alessandri ([email protected])
Наследование: extends PredisException
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Predis\Connection\NodeConnectionInterface $connection, string $message = null, integer $code = null, Exception $innerException = null )
getConnection ( ) : Predis\Connection\NodeConnectionInterface Gets the connection that generated the exception.
handle ( CommunicationException $exception ) Helper method to handle exceptions generated by a connection object.
shouldResetConnection ( ) : boolean Indicates if the receiver should reset the underlying connection.

Описание методов

__construct() публичный Метод

public __construct ( Predis\Connection\NodeConnectionInterface $connection, string $message = null, integer $code = null, Exception $innerException = null )
$connection Predis\Connection\NodeConnectionInterface Connection that generated the exception.
$message string Error message.
$code integer Error code.
$innerException Exception Inner exception for wrapping the original error.

getConnection() публичный Метод

Gets the connection that generated the exception.
public getConnection ( ) : Predis\Connection\NodeConnectionInterface
Результат Predis\Connection\NodeConnectionInterface

handle() публичный статический Метод

Helper method to handle exceptions generated by a connection object.
public static handle ( CommunicationException $exception )
$exception CommunicationException Exception.

shouldResetConnection() публичный Метод

Indicates if the receiver should reset the underlying connection.
public shouldResetConnection ( ) : boolean
Результат boolean