File Coverage

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


line stmt bran cond sub pod time code
1             # ============================================================================
2             package Business::UPS::Tracking::Exception;
3             # ============================================================================
4 5     5   33 use utf8;
  5         44  
  5         37  
5 5     5   197 use 5.0100;
  5         17  
6              
7 5     5   28 use strict;
  5         11  
  5         97  
8 5     5   46 use warnings;
  5         22  
  5         377  
9              
10             use Exception::Class(
11 5         89 '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 5     5   2408 );
  5         24834  
35              
36             1;