Clinton Gormley > ElasticSearch > ElasticSearch::Error

Download:
ElasticSearch-0.68.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.68   Source  

NAME ^

ElasticSearch::Error - Exception objects for ElasticSearch

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 ^

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.

syntax highlighting: