SyForm/Exception.pm

filter: Statementstmt 66.6% 8 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 1 totaltotal 58.8% 10 / 17 CC 1 SCAR 4.1
CC
1
Cov
67%
__ANON__
2.0
throw_with_args
2.0
BEGIN
1.0
CRAP 1.5
« SyForm/View.pm ↑ Summary SyForm/ViewRole/Success.pm »
1 package SyForm::Exception;
2 7 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 $SyForm::Exception::AUTHORITY = 'cpan:GETTY';
4 }
5 # ABSTRACT: SyForm base exception class
6 7 $SyForm::Exception::VERSION = '0.103';
7 7 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 extends 'Throwable::Error';
9  
10 0 ▶around throw => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
11 0 my ( $orig, $class, $message, %args ) = @_;
12 0 $class->$orig({
13 message => "\n".'[SyForm Exception] '.$message, %args
14 });
15 7 };
16  
17 0 ▶sub throw_with_args {
Subroutine throw_with_args: not called CC=1 SCAR=6.9
Pod undocumented
18 0 my ( $class, $message ) = @_;
19 0 $class->throw($message);
20 }
21  
22 7 1;
23  
24 __END__
« SyForm/View.pm ↑ Summary SyForm/ViewRole/Success.pm »