line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::Liberal::Error; |
2
|
4
|
|
|
4
|
|
19
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
97
|
|
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
14
|
use base qw( Class::Accessor ); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
557
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->mk_ro_accessors(qw( message line column location )); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub summary { |
9
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
my $line = $self->line; |
12
|
0
|
|
|
|
|
|
my $column = $self->column; |
13
|
0
|
0
|
0
|
|
|
|
my $location = defined $line && defined $column ? "$line:$column" |
|
|
0
|
|
|
|
|
|
14
|
|
|
|
|
|
|
: defined $line ? $line |
15
|
|
|
|
|
|
|
: 'unknown location'; |
16
|
0
|
|
|
|
|
|
return join ' at position ', $self->message, $location |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
__END__ |