lib/Myriad/Exception/General.pm

filter: Statementstmt 90.0% 18 / 20 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 2 totaltotal 71.8% 23 / 32 CC 2 SCAR 8.6
CC
2
Cov
82%
message
6.0
category
2.0
BEGIN
1.0
CRAP 2.4
« lib/Myriad/Service/Storage/Remote.pm ↑ Summary script/myriad-dev.pl »
1 package Myriad::Exception::General;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 our $VERSION = '1.001'; # VERSION
7 2 our $AUTHORITY = 'cpan:DERIV'; # AUTHORITY
8  
9 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 =encoding utf8
12  
13 =head1 NAME
14  
15 Myriad::Exception::Base - common class for all exceptions
16  
17 =head1 DESCRIPTION
18  
19 See L<Myriad::Exception> for the rĂ´le that defines the exception API.
20  
21 =cut
22  
23 2 ▶no indirect qw(fatal);
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 2 ▶use Myriad::Exception::Builder;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 0 ▶sub category { 'myriad' }
Subroutine category: not called CC=1 SCAR=6.9
Pod undocumented
28  
29 0 ▶sub message { shift->{message} //= 'unknown exception' }
Subroutine message: not called CC=2 SCAR=17.9
Pod undocumented
Condition0%0/2
(shift())->{"message"} //= "unknown exception"
l!l
00
MC/DC0%0/1
(shift())->{"message"} //= "unknown exception"
(shift())->{"message"}
Truth table0%0/2
A
A= (shift())->{"message"}
Aresult
11
00
30  
31 2 1;
32  
33 =head1 AUTHOR
34  
35 Deriv Group Services Ltd. C<< DERIV@cpan.org >>.
36  
37 See L<Myriad/CONTRIBUTORS> for full details.
38  
39 =head1 LICENSE
40  
41 Copyright Deriv Group Services Ltd 2020-2022. Licensed under the same terms as Perl itself.
42  
« lib/Myriad/Service/Storage/Remote.pm ↑ Summary script/myriad-dev.pl »