HeavyCGI/Exception.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
CRAP 2.0
1 package Apache::HeavyCGI::Exception;
2 use strict;
3  
4 sub new {
5 my $class = shift;
6 bless { @_ }, $class;
7 }
8  
9 1;
10  
11 =head1 NAME
12  
13 Apache::HeavyCGI::Exception - exception class for Apache::HeavyCGI
14  
15 =head1 SYNOPSIS
16  
17 die Apache::HeavyCGI::Exception->new(HTTP_STATUS => status);
18 die Apache::HeavyCGI::Exception->new(ERROR => [error, ...]);
19  
20 =head1 DESCRIPTION
21  
22 The execution of the Apache::HeavyCGI::prepare method is protected by
23 an eval. Within that block the above mentioned exceptions can be
24 thrown. For a discussion of the semantics of these errors, see
25 L<Apache::HeavyCGI>.
26  
27 You need not C<require> the Apache::HeavyCGI::Error module, it is
28 already required by Apache::HeavyCGI.
29  
30 =cut
31