Authentik/Error.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Authentik/Error/API.pm ↑ Summary Authentik/Error/Network.pm »
1 package WWW::Authentik::Error;
2  
3 # ABSTRACT: Exception base class for WWW::Authentik
4  
5 7 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # No namespace::autoclean here: it would remove the overload stub.
8 7 ▶use overload '""' => sub { $_[0]->message }, fallback => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
9  
10 7 our $VERSION = '0.001';
11  
12  
13 7 has message => (
14 is => 'ro',
15 required => 1
16 );
17  
18  
19 123 ▶sub throw {
Subroutine throw: called CC=1 SCAR=0.0
Pod documented
20 123 my ( $class, %arg ) = @_;
21 123 die $class->new(%arg);
22 }
23  
24  
25 7 1;
26  
27 __END__
« Authentik/Error/API.pm ↑ Summary Authentik/Error/Network.pm »