PHP Class Elastica\Exception\ElasticsearchException

Author: Ian Babrou ([email protected])
Inheritance: extends Exception
Afficher le fichier Open project: ruflin/elastica

Protected Properties

Свойство Type Description
$_error Error array

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
_extractException ( string $error ) : null | string Extract exception name from error response.
_parseError ( string $error ) Parse error message from elasticsearch.

Method Details

__construct() public méthode

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

_extractException() protected méthode

Extract exception name from error response.
protected _extractException ( string $error ) : null | string
$error string
Résultat null | string

_parseError() protected méthode

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

getError() public méthode

public getError ( ) : array
Résultat array Error array

getExceptionName() public méthode

Returns elasticsearch exception name.
public getExceptionName ( ) : string | null
Résultat string | null

isRemoteTransportException() public méthode

Returns whether exception was local to server node or remote.
public isRemoteTransportException ( ) : boolean
Résultat boolean

Property Details

$_error protected_oe property

Error array
protected $_error