GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ELASTICSEARCH::ERROR (3)

.ds Aq ’

NAME

ElasticSearch::Error - Exception objects for ElasticSearch

CONTENTS

DESCRIPTION

ElasticSearch::Error is a base class for exceptions thrown by any ElasticSearch code.

There are several exception subclasses, which indicate different types of error. All of them inherit from ElasticSearch::Error, and all include:



    $error->{-text}         # error message
    $error->{-file}         # file where error was thrown
    $error->{-line}         # line where error was thrown



They may also include:



    $error->{-vars}         # Any relevant variables related to the error
    $error->{-stacktrace}   # A stacktrace, if $ElasticSearch::DEBUG == 1



Error objects can be stringified, and include all of the above information in the string output.

EXCEPTION CLASSES

o ElasticSearch::Error::Param

An incorrect parameter was passed in

o ElasticSearch::Error::Timeout

The request timed out

o ElasticSearch::Error::Connection

There was an error connecting to the current node. The request will be retried on another node.

o ElasticSearch::Error::NotReady

The current node is not yet able to serve requests. The request will be retried on another node. ElasticSearch::Error::NotReady inherits from ElasticSearch::Error::Connection.

o ElasticSearch::Error::ClusterBlocked

The cluster was unable to process the request because it is currently blocking, eg the requested index is closed.

o ElasticSearch::Error::Request

There was some other error performing the request

o ElasticSearch::Error::Conflict

There was a versioning conflict while performing an index/create/delete operation. ElasticSearch::Error::Conflict inherits from ElasticSearch::Error::Request.

The lastest version number is available as:



    $error->{-vars}{current_version};



o ElasticSearch::Error::Missing

Tried to get/delete a document or index that doesn’t exist. ElasticSearch::Error::Missing inherits from ElasticSearch::Error::Request.

o ElasticSearch::Error::NoServers

No servers are available

o ElasticSearch::Error::JSON

There was an error parsing a JSON doc

o ElasticSearch::Error::Internal

An internal error - you shouldn’t see these

LICENSE AND COPYRIGHT

Copyright 2010 - 2011 Clinton Gormley.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ELASTICSEARCH::ERROR (3) 2013-09-24

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.