line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
OpenFrame::WebApp::Error::Abstract - error thrown by abstract methods. |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 SYNOPSIS |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Error; |
8
|
|
|
|
|
|
|
use OpenFrame::WebApp::Error::Abstract; |
9
|
|
|
|
|
|
|
throw OpenFrame::WebApp::Error::Abstract( class => ref($self) ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=cut |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
package OpenFrame::WebApp::Error::Abstract; |
15
|
|
|
|
|
|
|
|
16
|
5
|
|
|
5
|
|
5107
|
use utf8; |
|
5
|
|
|
|
|
56
|
|
|
5
|
|
|
|
|
39
|
|
17
|
5
|
|
|
5
|
|
183
|
use strict; |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
172
|
|
18
|
5
|
|
|
5
|
|
29
|
use warnings::register; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
871
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
our $VERSION = (split(/ /, ' $Revision: 1.2 $ '))[2]; |
21
|
|
|
|
|
|
|
|
22
|
5
|
|
|
5
|
|
26
|
use base qw( Error ); |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
1234
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub new { |
25
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
26
|
0
|
|
|
|
|
|
my %args = @_; |
27
|
0
|
|
|
|
|
|
my $pkg = $args{class}; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
local $Error::Depth = $Error::Depth + 1; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
my ($sub, $d); |
32
|
0
|
|
|
|
|
|
($d, $d, $d, $sub) = caller(2); |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
my $text = "$pkg does not implement abstract method $sub\()!"; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
$class->SUPER::new(-text => $text, @_); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |