| 1 | package Twilio::Exceptions::TwilioException; | ||||||||||||||||||||||
| 2 | |||||||||||||||||||||||
| 3 | 26 | ▶ | use 5.016; | ||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||
| 4 | 26 | ▶ | use warnings; | ||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||
| 5 | |||||||||||||||||||||||
| 6 | use overload | ||||||||||||||||||||||
| 7 | 58 | ▶ | q{""} => sub { $_[0]->get_message }, | ||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||
| 8 | 1 | ▶ | bool => sub { 1 }, | ||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||
| 9 | 26 | fallback => 1; | |||||||||||||||||||||
| 10 | |||||||||||||||||||||||
| 11 | 26 | our $VERSION = '2.001'; | |||||||||||||||||||||
| 12 | |||||||||||||||||||||||
| 13 | 140 | ▶ | sub new { | ||||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||
| 14 | 140 | my ($class, $message, $code) = @_; | |||||||||||||||||||||
| 15 | 140 | ▶ | return bless { message => $message // q{}, code => $code // 0 }, $class; | ||||||||||||||||||||
|
Condition100%4/4
$message // ""
$code // 0
MC/DC100%1/1
$message // ""
$message
MC/DC100%1/1
$code // 0
$code
Truth table100%2/2
A
A= $message
Truth table100%2/2
A
A= $code
| |||||||||||||||||||||||
| 16 | } | ||||||||||||||||||||||
| 17 | |||||||||||||||||||||||
| 18 | 84 | ▶ | sub throw { | ||||||||||||||||||||
|
Subroutine
throw: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||
| 19 | 84 | my ($class, @args) = @_; | |||||||||||||||||||||
| 20 | 84 | die $class->new(@args); ## no critic (ErrorHandling::RequireCarping) | |||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||
| 22 | |||||||||||||||||||||||
| 23 | 99 | ▶ | sub get_message { return $_[0]{message} } | ||||||||||||||||||||
|
Subroutine
get_message: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||
| 24 | 21 | ▶ | sub get_code { return $_[0]{code} } | ||||||||||||||||||||
|
Subroutine
get_code: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||
| 25 | |||||||||||||||||||||||
| 26 | 26 | 1; | |||||||||||||||||||||
| 27 | |||||||||||||||||||||||
| 28 | __END__ | ||||||||||||||||||||||