Conveyor/Exception/Internal/NoSuchTemplateHandler.pm

filter: Statementstmt 86.9% 20 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 1 / 1 totaltotal 87.5% 28 / 32 CC 1 SCAR 1.2
CC
1
Cov
87%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Conveyor/Template/Factory.pm ↑ Summary Conveyor/Service/Interface.pm »
1 1 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Data::Conveyor::Exception::Internal::NoSuchTemplateHandler;
6 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Data::Conveyor::Exception::Internal::NoSuchTemplateHandler::VERSION = '1.103130';
8 }
9 # ABSTRACT: Stage-based conveyor-belt-like ticket handling system
10  
11 1 ▶use parent 'Error::Hierarchy::Internal';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 __PACKAGE__->mk_scalar_accessors(qw(handler_type ticket_type));
13 1 ▶use constant default_message =>
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 'No class for template handler type [%s], ticket type [%s]';
15 1 ▶use constant PROPERTIES => (qw/handler_type ticket_type/);
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 0 ▶sub init {
Subroutine init: not called CC=1 SCAR=6.9
Pod documented
18 0 my $self = shift;
19  
20 # because we call SUPER::init(), which uses caller() to set
21 # package, filename and line of the exception, *plus* we don't want
22 # to report the abstract method that threw this exception itself,
23 # rather we want to report its caller, i.e. the one that called the
24 # abstract method. So we use +2.
25 0 local $Error::Depth = $Error::Depth + 2;
26 0 $self->SUPER::init(@_);
27 }
28 1 1;
29  
30  
31 __END__
« Conveyor/Template/Factory.pm ↑ Summary Conveyor/Service/Interface.pm »