Server/Error.pm

filter: Statementstmt 57.8% 11 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 4 / 8 Podpod 80.0% 4 / 5 totaltotal 59.3% 19 / 32 CC 1 SCAR 4.1
CC
1
Cov
58%
details
2.0
errnum
2.0
errstr
2.0
CRAP 1.5
« Server/Connection.pm ↑ Summary Server/Request.pm »
1 # $Id: Error.pm 909 2012-07-13 15:38:39Z fil $
2 # Copyright 2010 Philip Gwyn
3  
4 package POEx::HTTP::Server::Error;
5  
6 14 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 14 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 14 ▶use base qw( POEx::HTTP::Server::Response );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 sub details
12 0 ▶{
Subroutine details: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my( $self, $op, $errnum, $errstr ) = @_;
14 0 $self->{op} = $op;
15 0 $self->{errnum} = $errnum;
16 0 $self->{errstr} = $errstr;
17  
18 0 $self->content( "$op error [$errnum] $errstr" );
19 }
20  
21 2 ▶sub op { $_[0]->{op} }
Subroutine op: called CC=1 SCAR=0.0
Pod documented
22 0 ▶sub errnum { $_[0]->{errnum} }
Subroutine errnum: not called CC=1 SCAR=6.9
Pod documented
23 0 ▶sub errstr { $_[0]->{errstr} }
Subroutine errstr: not called CC=1 SCAR=6.9
Pod documented
24 0 ▶sub errstring { $_[0]->{errstring} }
Subroutine errstring: not called CC=1 SCAR=6.9
Pod documented
25  
26 14 1;
27  
28 __END__
« Server/Connection.pm ↑ Summary Server/Request.pm »