line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: ExceptionBase.pm,v 1.1.1.1 2006/02/20 00:35:57 toni Exp $ |
2
|
|
|
|
|
|
|
package Luka::ExceptionBase; |
3
|
2
|
|
|
2
|
|
1452
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
72
|
|
4
|
2
|
|
|
2
|
|
25
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
76
|
|
5
|
2
|
|
|
2
|
|
12
|
use vars qw($VERSION); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
96
|
|
6
|
2
|
|
|
2
|
|
11
|
use Exception::Class; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
21
|
|
7
|
2
|
|
|
2
|
|
89
|
use base qw(Exception::Class::Base); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
200
|
|
8
|
2
|
|
|
2
|
|
2007
|
use Error qw(:try); |
|
2
|
|
|
|
|
7343
|
|
|
2
|
|
|
|
|
10
|
|
9
|
|
|
|
|
|
|
push @Exception::Class::Base::ISA, 'Error' |
10
|
|
|
|
|
|
|
unless Exception::Class::Base->isa('Error'); |
11
|
2
|
|
|
2
|
|
440
|
use Cwd; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
121
|
|
12
|
2
|
|
|
2
|
|
11
|
use Data::Dumper; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
89
|
|
13
|
2
|
|
|
2
|
|
12
|
use File::Spec; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
37
|
|
14
|
2
|
|
|
2
|
|
9
|
use Luka; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
271
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
$VERSION = '1.1'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub report { |
19
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
$self->{path} = Cwd::cwd(); |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my ($vol,$dir,$file) = File::Spec->splitpath($0); |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
my $obj = Luka->new({ filename => $file, |
26
|
|
|
|
|
|
|
error => $self }); |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
$obj->report_error(); |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
return; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|