AtD/Exceptions.pm

filter: Statementstmt 100% 5 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 6 / 6 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« AtD/Scores.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 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__
« AtD/Scores.pm ↑ Summary AtD/Metric.pm »