line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Iterator::BreakOn::X; |
2
|
2
|
|
|
2
|
|
13
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
80
|
|
3
|
2
|
|
|
2
|
|
14
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
123
|
|
4
|
2
|
|
|
2
|
|
10
|
use Carp; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
328
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.2'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Exception::Class( |
9
|
2
|
|
|
|
|
40
|
'Iterator::BreakOn::X' => { |
10
|
|
|
|
|
|
|
description => 'Parent class', |
11
|
|
|
|
|
|
|
}, |
12
|
|
|
|
|
|
|
'Iterator::BreakOn::X::datasource' => { |
13
|
|
|
|
|
|
|
isa => 'Iterator::BreakOn::X', |
14
|
|
|
|
|
|
|
description => 'fatal error in next method of datasource', |
15
|
|
|
|
|
|
|
}, |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
'Iterator::BreakOn::X::missing' => { |
18
|
|
|
|
|
|
|
isa => 'Iterator::BreakOn::X', |
19
|
|
|
|
|
|
|
description => 'missing required parameter', |
20
|
|
|
|
|
|
|
fields => [ 'parameter' ], |
21
|
|
|
|
|
|
|
}, |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
'Iterator::BreakOn::X::getmethod' => { |
24
|
|
|
|
|
|
|
isa => 'Iterator::BreakOn::X', |
25
|
|
|
|
|
|
|
description => "object can't use the user supplied get method", |
26
|
|
|
|
|
|
|
fields => [ 'get_method' ], |
27
|
|
|
|
|
|
|
}, |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
'Iterator::BreakOn::X::invalid_event' => { |
30
|
|
|
|
|
|
|
isa => 'Iterator::BreakOn::X', |
31
|
|
|
|
|
|
|
description => 'received an invalid name for an event', |
32
|
|
|
|
|
|
|
fields => [ 'name' ], |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
'Iterator::BreakOn::X::csvfail' => { |
36
|
|
|
|
|
|
|
isa => 'Iterator::BreakOn::X', |
37
|
|
|
|
|
|
|
description => 'fatal error in Text::CSV package', |
38
|
|
|
|
|
|
|
}, |
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
2
|
|
2007
|
); |
|
2
|
|
|
|
|
35348
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub full_message { |
43
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
44
|
0
|
|
0
|
|
|
|
my $msg = $self->message() |
45
|
|
|
|
|
|
|
|| $self->description() |
46
|
|
|
|
|
|
|
|| 'unknown error'; |
47
|
|
|
|
|
|
|
|
48
|
0
|
|
|
|
|
|
return "fatal error: ${msg}"; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
__END__ |