WebApp/Error/Abstract.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« WebApp/Segment/Decline/UserInStore.pm ↑ Summary WebApp/Error/LoadClass.pm »
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 20 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 20 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 20 our $VERSION = (split(/ /, ' $Revision: 1.2 $ '))[2];
21  
22 20 ▶use base qw( Error );
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
25 1 my $class = shift;
26 1 my %args = @_;
27 1 my $pkg = $args{class};
28  
29 1 local $Error::Depth = $Error::Depth + 1;
30  
31 1 my ($sub, $d);
32 1 ($d, $d, $d, $sub) = caller(2);
33  
34 1 my $text = "$pkg does not implement abstract method $sub\()!";
35  
36 1 $class->SUPER::new(-text => $text, @_);
37 }
38  
39  
40 20 1;
41  
42  
43 __END__
« WebApp/Segment/Decline/UserInStore.pm ↑ Summary WebApp/Error/LoadClass.pm »