Exception/Base.pm

filter: Statementstmt 53.3% 8 / 15 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 50.0% 2 / 4 Podpod 100% 2 / 2 totaltotal 46.1% 12 / 26 SCAR 9.9
CC
2
Cov
44%
new
6.0
full_message
2.0
BEGIN
1.0
CRAP 2.7
« Instrument/LabViewHeater.pm ↑ Summary Connection/Socket.pm »
1 package Lab::Exception::Base;
2 #ABSTRACT: Exception base class
3 9 $Lab::Exception::Base::VERSION = '3.881';
4 9 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 #
7 # This is for comfy optional adding of custom methods via our own exception base class later
8 #
9  
10 9 our @ISA = ("Exception::Class::Base");
11  
12 #use Carp;
13 9 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 sub new {
16 0 ▶ my $proto = shift;
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
17 0 ▶ my $class = ref($proto) || $proto;
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
18 0 my $self = $class->SUPER::new(@_);
19 0 $self->Trace(1); # Append stack trace to string representation by default
20 0 return $self;
21 }
22  
23 sub full_message {
24 0 ▶ my $self = shift;
Subroutine full_message: not called CC=1 SCAR=6.9
Pod documented
25  
26 return
27 0 $self->message()
28 . "\nFile: "
29 . $self->file()
30 . "\nPackage: "
31 . $self->package()
32 . "\nLine:"
33 . $self->package() . "\n";
34 }
35  
36 9 1;
37  
38 __END__
39  
40 =pod
41  
42 =encoding UTF-8
43  
44 =head1 NAME
45  
46 Lab::Exception::Base - Exception base class
47  
48 =head1 VERSION
49  
50 version 3.881
51  
52 =head1 COPYRIGHT AND LICENSE
53  
54 This software is copyright (c) 2023 by the Lab::Measurement team; in detail:
55  
56 Copyright 2014 Andreas K. Huettel
57 2016 Simon Reinhardt
58 2017 Andreas K. Huettel
59 2020 Andreas K. Huettel
60  
61  
62 This is free software; you can redistribute it and/or modify it under
63 the same terms as the Perl 5 programming language system itself.
64  
65 =cut
« Instrument/LabViewHeater.pm ↑ Summary Connection/Socket.pm »