Fey/Exceptions.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 89.6% 26 / 29 CC 1 SCAR 0.0
CC
1
Cov
95%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Fey/SQL/Delete.pm ↑ Summary Fey/SQL/Fragment/Where/SubgroupEnd.pm »
1 package Fey::Exceptions;
2  
3 28 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 28 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 28 our $VERSION = '0.44';
7  
8 28 my %E;
9  
10 28 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
11 28 %E = (
12 'Fey::Exception' => {
13 description =>
14 'Generic exception within the Alzabo API. Should only be used as a base class.',
15 },
16  
17 'Fey::Exception::ObjectState' => {
18 description =>
19 'You called a method on an object which its current state does not allow',
20 isa => 'Fey::Exception',
21 alias => 'object_state_error',
22 },
23  
24 'Fey::Exception::Params' => {
25 description =>
26 'An exception generated when there is an error in the parameters passed in a method of function call',
27 isa => 'Fey::Exception',
28 alias => 'param_error',
29 },
30  
31 'Fey::Exception::VirtualMethod' => {
32 description =>
33 'Indicates that the method called must be subclassed in the appropriate class',
34 isa => 'Fey::Exception',
35 alias => 'virtual_method',
36 },
37 );
38 }
39  
40 28 ▶use Exception::Class (%E);
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 28 Fey::Exception->Trace(1);
43  
44 28 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46 28 ▶our @EXPORT_OK = map { $_->{alias} || () } values %E;
Condition66%2/3
$_->{'alias'} || ()
l!l&&r!l&&!r
84280
MC/DC0%0/2
$_->{'alias'} || ()
$_->{'alias'} ()
Truth table66%2/3
A || B
A= $_->{'alias'}B= ()
ABresult
1X1
011
000
47  
48 28 1;
49  
50 # ABSTRACT: Defines exceptions used in the core Fey classes
51  
52 __END__
« Fey/SQL/Delete.pm ↑ Summary Fey/SQL/Fragment/Where/SubgroupEnd.pm »