Brian Cassidy > WebService-Lucene > WebService::Lucene::Exception

Download:
WebService-Lucene-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

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 ^

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.