line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ============================================================================ |
2
|
|
|
|
|
|
|
package Business::UPS::Tracking::Exception; |
3
|
|
|
|
|
|
|
# ============================================================================ |
4
|
5
|
|
|
5
|
|
25
|
use utf8; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
35
|
|
5
|
5
|
|
|
5
|
|
272
|
use 5.0100; |
|
5
|
|
|
|
|
14
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
17
|
use strict; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
97
|
|
8
|
5
|
|
|
5
|
|
21
|
use warnings; |
|
5
|
|
|
|
|
4
|
|
|
5
|
|
|
|
|
308
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use Exception::Class( |
11
|
5
|
|
|
|
|
118
|
'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
|
|
2441
|
); |
|
5
|
|
|
|
|
21754
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |