PHP 클래스 Predis\CommunicationException

저자: Daniele Alessandri ([email protected])
상속: extends PredisException
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

공개 메소드들

메소드 설명
__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