Documentation

ProtocolException extends CommunicationException
in package

Exception used to indentify errors encountered while parsing the Redis wire protocol.

Tags
author

Daniele Alessandri suppakilla@gmail.com

Table of Contents

$connection  : mixed
__construct()  : mixed
getConnection()  : NodeConnectionInterface
Gets the connection that generated the exception.
handle()  : mixed
Helper method to handle exceptions generated by a connection object.
shouldResetConnection()  : bool
Indicates if the receiver should reset the underlying connection.

Properties

Methods

__construct()

public __construct(NodeConnectionInterface $connection[, string $message = null ][, int $code = null ][, Exception $innerException = null ]) : mixed
Parameters
$connection : NodeConnectionInterface

Connection that generated the exception.

$message : string = null

Error message.

$code : int = null

Error code.

$innerException : Exception = null

Inner exception for wrapping the original error.

Return values
mixed

shouldResetConnection()

Indicates if the receiver should reset the underlying connection.

public shouldResetConnection() : bool
Return values
bool

Search results