File Coverage

blib/lib/Business/UPS/Tracking/Exception.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             # ============================================================================
2             package Business::UPS::Tracking::Exception;
3             # ============================================================================
4 1     1   7 use utf8;
  1         3  
  1         10  
5 1     1   57 use 5.0100;
  1         6  
  1         44  
6              
7 1     1   8 use strict;
  1         3  
  1         327  
8 1     1   8 use warnings;
  1         3  
  1         120  
9              
10             use Exception::Class(
11 1         27 'Business::UPS::Tracking::X' => {
12             description => 'Basic error'
13             },
14             'Business::UPS::Tracking::X::HTTP' => {
15             isa => 'Business::UPS::Tracking::X',
16             description => 'HTTP error',
17             fields => [qw(http_response request)]
18             },
19             'Business::UPS::Tracking::X::UPS' => {
20             isa => 'Business::UPS::Tracking::X',
21             description => 'UPS error',
22             fields => [qw(code severity request context)]
23             },
24             'Business::UPS::Tracking::X::XML' => {
25             isa => 'Business::UPS::Tracking::X',
26             description => 'Malformed response xml',
27             fields => [qw(xml)]
28             },
29             # 'Business::UPS::Tracking::X::CLASS' => {
30             # isa => 'Business::UPS::Tracking::X',
31             # description => 'Class error',
32             # fields => [qw(method depth evaltext sub_name last_error sub is_require has_args)],
33             # },
34 1     1   2181 );
  1         61009  
35              
36             1;