PHP 클래스 Elastica\Exception\ElasticsearchException

저자: Ian Babrou ([email protected])
상속: extends Exception
파일 보기 프로젝트 열기: ruflin/elastica

보호된 프로퍼티들

프로퍼티 타입 설명
$_error Error array

공개 메소드들

메소드 설명
__construct ( integer $code, array $error ) Constructs elasticsearch exception.
getError ( ) : array
getExceptionName ( ) : string | null Returns elasticsearch exception name.
isRemoteTransportException ( ) : boolean Returns whether exception was local to server node or remote.

보호된 메소드들

메소드 설명
_extractException ( string $error ) : null | string Extract exception name from error response.
_parseError ( string $error ) Parse error message from elasticsearch.

메소드 상세

__construct() 공개 메소드

Constructs elasticsearch exception.
public __construct ( integer $code, array $error )
$code integer Error code
$error array Error object from elasticsearch

_extractException() 보호된 메소드

Extract exception name from error response.
protected _extractException ( string $error ) : null | string
$error string
리턴 null | string

_parseError() 보호된 메소드

Parse error message from elasticsearch.
protected _parseError ( string $error )
$error string Error message

getError() 공개 메소드

public getError ( ) : array
리턴 array Error array

getExceptionName() 공개 메소드

Returns elasticsearch exception name.
public getExceptionName ( ) : string | null
리턴 string | null

isRemoteTransportException() 공개 메소드

Returns whether exception was local to server node or remote.

프로퍼티 상세

$_error 보호되어 있는 프로퍼티

Error array
protected $_error