| 1 | # | ||
| 2 | # This file is part of Lingua-AtD | ||
| 3 | # | ||
| 4 | # This software is copyright (c) 2011 by David L. Day. | ||
| 5 | # | ||
| 6 | # This is free software; you can redistribute it and/or modify it under | ||
| 7 | # the same terms as the Perl 5 programming language system itself. | ||
| 8 | # | ||
| 9 | package Lingua::AtD::Exceptions; | ||
| 10 | 7 | $Lingua::AtD::Exceptions::VERSION = '1.160790'; | |
| 11 | 7 | ▶ | use Exception::Class ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 7 | Lingua::AtD::URLException => { | |
| 13 | fields => [ 'url', 'host', 'port' ], | ||
| 14 | description => 'Indicates a malformed URL.', | ||
| 15 | }, | ||
| 16 | Lingua::AtD::HTTPException => { | ||
| 17 | fields => [ 'http_status', 'service_url' ], | ||
| 18 | description => 'Indicates a problem connecting to the AtD service.', | ||
| 19 | }, | ||
| 20 | Lingua::AtD::ServiceException => { | ||
| 21 | fields => ['service_message'], | ||
| 22 | description => 'Indicates the AtD service returned an error message.', | ||
| 23 | }, | ||
| 24 | 7 | ); | |
| 25 | |||
| 26 | # ABSTRACT: Exception classes for Lingua::AtD | ||
| 27 | |||
| 28 | 7 | 1; # Magic true value required at end of module | |
| 29 | |||
| 30 | __END__ | ||