| 1 | package PerlActor::Exception; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 1 | ▶ | use Error qw( :try ); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 1 | ▶ | use base qw (Error::Simple); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | sub new | ||||||||||||||||||||
| 7 | 9 | ▶ | { | ||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.6
Pod
documented
| |||||||||||||||||||||
| 8 | 9 | my $proto = shift; | |||||||||||||||||||
| 9 | 9 | ▶ | my $class = ref $proto || $proto; | ||||||||||||||||||
|
Condition33%1/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 10 | 9 | my $text = shift; | |||||||||||||||||||
| 11 | 9 | ▶ | $text = '' unless $text; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 12 | 9 | my $value = shift; | |||||||||||||||||||
| 13 | 9 | return $class->SUPER::new($text, $value); | |||||||||||||||||||
| 14 | } | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | # Keep Perl happy. | ||||||||||||||||||||
| 17 | 1 | 1; | |||||||||||||||||||