DESCRIPTION

Errors thrown by Elasticsearch are error objects, which can include a strack trace and information to help debug problems. An error object consists of the following:

    {
        type  => $type,              # eg Missing
        text  => 'Error message',
        vars  => {...},              # vars which may help to explain the error
        stack => [...],              # a stack trace
    }

The $Elasticsearch::Error::DEBUG variable can be set to 1 or 2 to increase the verbosity of errors.

ERROR CLASSES

The following error classes are defined: