\Elastica\ExceptionElasticsearchException

Elasticsearch exception.

Summary

Methods
Properties
Constants
__construct()
getExceptionName()
isRemoteTransportException()
getError()
No public properties found
REMOTE_TRANSPORT_EXCEPTION
_parseError()
_extractException()
$_error
N/A
No private methods found
$_exception
$_isRemote
N/A

Constants

REMOTE_TRANSPORT_EXCEPTION

REMOTE_TRANSPORT_EXCEPTION

Properties

$_error

$_error : array

Type

array — Error array

$_exception

$_exception : string|null

Type

string|null — Elasticsearch exception name

$_isRemote

$_isRemote : boolean

Type

boolean — Whether exception was local to server node or remote

Methods

__construct()

__construct(integer  $code, string  $error) 

Constructs elasticsearch exception.

Parameters

integer $code

Error code

string $error

Error message from elasticsearch

getExceptionName()

getExceptionName() : string|null

Returns elasticsearch exception name.

Returns

string|null

isRemoteTransportException()

isRemoteTransportException() : boolean

Returns whether exception was local to server node or remote.

Returns

boolean

getError()

getError() : array

Returns

array —

Error array

_parseError()

_parseError(string  $error) 

Parse error message from elasticsearch.

Parameters

string $error

Error message

_extractException()

_extractException(string  $error) : null|string

Extract exception name from error response.

Parameters

string $error

Returns

null|string