The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::Lucene::Exception - Exceptions to catch from the web service

SYNOPSIS

    my $entry = eval { $index->get_document( 1 ); };
    if( my $e = WebService::Lucene::Exception->caught ) {
        # handle exception
    }

DESCRIPTION

Object thrown for all exceptions from the web service.

METHODS

new( $reponse )

Constructs a new exception from an HTTP::Response.

response ( )

The HTTP::Response object passed to this exception.

entry( )

The XML::Atom Entry for the error returned from the server.

stacktrace( )

If debug mode is enabled, a full stracktrace from the server-side will be found here.

type ( )

Returns the type of exception the lucene web service has thrown.

Fields( )

Subclassed method to store an arrayref of extra fields.

AUTHORS

  • Brian Cassidy <brian.cassidy@nald.ca>

  • Adam Paynter <adam.paynter@nald.ca>

COPYRIGHT AND LICENSE

Copyright 2006-2009 National Adult Literacy Database

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.