WebService::Lucene::Exception - Exceptions to catch from the web service
my $entry = eval { $index->get_document( 1 ); }; if( my $e = WebService::Lucene::Exception->caught ) { # handle exception }
Object thrown for all exceptions from the web service.
Constructs a new exception from an HTTP::Response.
The HTTP::Response object passed to this exception.
The XML::Atom Entry for the error returned from the server.
If debug mode is enabled, a full stracktrace from the server-side will be found here.
Returns the type of exception the lucene web service has thrown.
Subclassed method to store an arrayref of extra fields.
Brian Cassidy <brian.cassidy@nald.ca>
Adam Paynter <adam.paynter@nald.ca>
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.
To install WebService::Lucene, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Lucene
CPAN shell
perl -MCPAN -e shell install WebService::Lucene
For more information on module installation, please visit the detailed CPAN module installation guide.