line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright (C) 2008 Stephen Vance |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# This library is free software; you can redistribute it and/or |
4
|
|
|
|
|
|
|
# modify it under the terms of the Perl Artistic License. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This library is distributed in the hope that it will be useful, |
7
|
|
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
8
|
|
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Perl |
9
|
|
|
|
|
|
|
# Artistic License for more details. |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# You should have received a copy of the Perl Artistic License along |
12
|
|
|
|
|
|
|
# with this library; if not, see: |
13
|
|
|
|
|
|
|
# |
14
|
|
|
|
|
|
|
# http://www.perl.com/language/misc/Artistic.html |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
# Designed and written by Stephen Vance (steve@vance.com) on behalf |
17
|
|
|
|
|
|
|
# of The MathWorks, Inc. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
package Error::Exception::Class; |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
|
1054
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
22
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
5
|
use base qw( Exception::Class ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
156
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
our $VERSION = '1.0'; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub import { |
29
|
1
|
|
|
1
|
|
6
|
my ($pkg, @exceptions) = @_; |
30
|
|
|
|
|
|
|
|
31
|
1
|
|
|
|
|
5
|
local $Exception::Class::BASE_EXC_CLASS = 'Error::Exception'; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
local *CORE::GLOBAL::caller = sub { |
34
|
0
|
0
|
|
0
|
|
0
|
my ($n) = @_ ? @_ : 0; |
35
|
0
|
|
|
|
|
0
|
return CORE::caller( $n + 1 ); |
36
|
1
|
|
|
|
|
4
|
}; |
37
|
|
|
|
|
|
|
|
38
|
1
|
|
|
|
|
8
|
$pkg->SUPER::import( @exceptions ); |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
|
|
22
|
return; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
__END__ |