line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
71306
|
use 5.008; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
97
|
|
2
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
78
|
|
3
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
143
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Error::Hierarchy::Base; |
6
|
|
|
|
|
|
|
BEGIN { |
7
|
2
|
|
|
2
|
|
57
|
$Error::Hierarchy::Base::VERSION = '1.103530'; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
# ABSTRACT: Base class for hierarchical exception classes |
10
|
2
|
|
|
|
|
14
|
use parent qw( |
11
|
|
|
|
|
|
|
Error |
12
|
|
|
|
|
|
|
Data::Inherited |
13
|
|
|
|
|
|
|
Class::Accessor::Complex |
14
|
2
|
|
|
2
|
|
20
|
); |
|
2
|
|
|
|
|
5
|
|
15
|
|
|
|
|
|
|
__PACKAGE__->mk_new; # so we don't get Error::new() |
16
|
|
|
|
|
|
|
use overload |
17
|
|
|
|
|
|
|
'""' => 'stringify', |
18
|
2
|
|
|
2
|
|
12804
|
'cmp' => sub { "$_[0]" cmp "$_[1]" }, |
19
|
2
|
|
|
2
|
|
10939
|
fallback => 1; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
24
|
|
20
|
0
|
|
|
0
|
1
|
|
sub stringify { } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub dump_raw { |
23
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
24
|
0
|
|
|
|
|
|
require Data::Dumper; |
25
|
0
|
|
|
|
|
|
local $Data::Dumper::Indent = 1; |
26
|
0
|
|
|
|
|
|
Data::Dumper::Dumper($self); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub dump_as_yaml { |
30
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
31
|
0
|
|
|
|
|
|
require YAML; |
32
|
0
|
|
|
|
|
|
YAML::Dump($self); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |