AtD/Exceptions.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« AtD.pm ↑ Summary AtD/Metric.pm »
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 {
11 8 $Lingua::AtD::Exceptions::VERSION = '1.121570';
12 }
13 use Exception::Class (
14 8 Lingua::AtD::URLException => {
15 fields => [ 'url', 'host', 'port' ],
16 description => 'Indicates a malformed URL.',
17 },
18 Lingua::AtD::HTTPException => {
19 fields => [ 'http_status', 'service_url' ],
20 description => 'Indicates a problem connecting to the AtD service.',
21 },
22 Lingua::AtD::ServiceException => {
23 fields => ['service_message'],
24 description => 'Indicates the AtD service returned an error message.',
25 },
26 8 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 # ABSTRACT: Exception classes for Lingua::AtD
29  
30 8 1; # Magic true value required at end of module
31  
32  
33 =pod
34  
35 =head1 NAME
36  
37 Lingua::AtD::Exceptions - Exception classes for Lingua::AtD
38  
39 =head1 VERSION
40  
41 version 1.121570
42  
43 =head1 AUTHOR
44  
45 David L. Day <dday376@gmail.com>
46  
47 =head1 COPYRIGHT AND LICENSE
48  
49 This software is copyright (c) 2011 by David L. Day.
50  
51 This is free software; you can redistribute it and/or modify it under
52 the same terms as the Perl 5 programming language system itself.
53  
54 =cut
55  
56  
57 __END__
« AtD.pm ↑ Summary AtD/Metric.pm »