NAME
Elasticsearch::Error - Errors thrown by Elasticsearch
VERSION
version 0.74
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:
Elasticsearch::Error::ParamA bad parameter has been passed to a method.
Elasticsearch::Error::RequestThere was some generic error performing your request in Elasticsearch. This error is triggered by HTTP status codes
400and500. This class has the following sub-classes:Elasticsearch::Error::MissingA resource that you requested was not found. These errors are triggered by the
404HTTP status code.Elastisearch::Error::ConflictYour request could not be performed because of some conflict. For instance, if you try to delete a document with a particular version number, and the document has already changed, it will throw a
Conflicterror. If it can, it will include thecurrent_versionin the error vars. This error is triggered by the409HTTP status code.Elasticsearch::Error::ContentLengthThe request body was longer than the max_content_length.
Elasticsearch::Error::TimeoutThe request timed out.
Elasticsearch::Error::CxnThere was an error connecting to a node in the cluster. This error indicates node failure and will be retried on another node. This error has the following sub-class:
Elasticsearch::Error::UnavailableThe current node is unable to handle your request at the moment. Your request will be retried on another node. This error is triggered by the
503HTTP status code.
Elasticsearch::Error::ClusterBlockedThe cluster was unable to process the request because it is currently blocking, eg there are not enough master nodes to form a cluster. This error is triggered by the
403HTTP status code.Elasticsearch::Error::SerializerThere was an error serializing a variable or deserializing a string.
Elasticsarch::Error::InternalAn internal error occurred - please report this as a bug in this module.
AUTHOR
Clinton Gormley <drtech@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2013 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004