| 1 | package Apertur::SDK::Error::NotFound; | ||||||||||||
| 2 | |||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 1 | ▶ | use parent 'Apertur::SDK::Error'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 2 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||||
| 8 | 2 | my ($class, %args) = @_; | |||||||||||
| 9 | return $class->SUPER::new( | ||||||||||||
| 10 | status_code => 404, | ||||||||||||
| 11 | code => 'NOT_FOUND', | ||||||||||||
| 12 | 2 | ▶ | message => $args{message} // 'Not found', | ||||||||||
|
Condition100%2/2
$args{"message"} // "Not found"
MC/DC100%1/1
$args{"message"} // "Not found"
$args{"message"}
Truth table100%2/2
A
A= $args{"message"}
| |||||||||||||
| 13 | ); | ||||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 1 | 1; | |||||||||||
| 17 | |||||||||||||
| 18 | __END__ | ||||||||||||