| 1 | package Apertur::SDK::Error::Authentication; | ||||||||||||
| 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 | 1 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=2 SCAR=7.2
Pod
documented
| |||||||||||||
| 8 | 1 | my ($class, %args) = @_; | |||||||||||
| 9 | return $class->SUPER::new( | ||||||||||||
| 10 | status_code => 401, | ||||||||||||
| 11 | code => 'AUTHENTICATION_FAILED', | ||||||||||||
| 12 | 1 | ▶ | message => $args{message} // 'Authentication failed', | ||||||||||
|
Condition50%1/2
$args{"message"} // "Authentication failed"
MC/DC0%0/1
$args{"message"} // "Authentication failed"
$args{"message"}
Truth table50%1/2
A
A= $args{"message"}
| |||||||||||||
| 13 | ); | ||||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 1 | 1; | |||||||||||
| 17 | |||||||||||||
| 18 | __END__ | ||||||||||||