PHP Класс Elastica\Exception\ElasticsearchException

Автор: Ian Babrou ([email protected])
Наследование: extends Exception
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.
public isRemoteTransportException ( ) : boolean
Результат boolean

Описание свойств

$_error защищенное свойство

Error array
protected $_error