lib/Perl/Critic/Exception/Fatal.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Perl/Critic/Exception/Configuration/Option/Global.pm ↑ Summary lib/Perl/Critic/Exception/Fatal/Generic.pm »
1 package Perl::Critic::Exception::Fatal;
2  
3 40 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 40 our $VERSION = '1.156';
8  
9 #-----------------------------------------------------------------------------
10  
11 40 ▶use Exception::Class (
Subroutine BEGIN: called CC=1 SCAR=0.0
12 40 'Perl::Critic::Exception::Fatal' => {
13 isa => 'Perl::Critic::Exception',
14 description =>
15 'A problem that should cause Perl::Critic to stop running.',
16 },
17 40 );
18  
19 #-----------------------------------------------------------------------------
20  
21 22 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
22 22 my ($class, @args) = @_;
23 22 my $self = $class->SUPER::new(@args);
24  
25 22 $self->show_trace(1);
26  
27 22 return $self;
28 }
29  
30 #-----------------------------------------------------------------------------
31  
32 10 ▶sub full_message {
Subroutine full_message: called CC=1 SCAR=0.0
Pod documented
33 10 my ( $self ) = @_;
34  
35 return
36 10 $self->short_class_name()
37 . q{: }
38 . $self->description()
39 . "\n\n"
40 . $self->message()
41 . "\n\n"
42 . gmtime $self->time()
43 . "\n\n";
44 }
45  
46  
47 40 1;
48  
49 __END__
« lib/Perl/Critic/Exception/Configuration/Option/Global.pm ↑ Summary lib/Perl/Critic/Exception/Fatal/Generic.pm »