| 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"
MC/DC0%0/1
(shift())->{"message"} //= "unknown exception"
(shift())->{"message"}
Truth table0%0/2
A
A= (shift())->{"message"}
| |||||||||||||
| 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 | |||||||||||||