| 1 | package Twilio::Exceptions::RestException; | ||||||||||||
| 2 | |||||||||||||
| 3 | 19 | ▶ | use 5.016; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 19 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | 19 | ▶ | use parent 'Twilio::Exceptions::TwilioException'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | |||||||||||||
| 8 | 19 | our $VERSION = '2.001'; | |||||||||||
| 9 | |||||||||||||
| 10 | 55 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||
| 11 | 55 | my ($class, $message, $code, $status_code, $more_info, $details) = @_; | |||||||||||
| 12 | 55 | my $self = $class->SUPER::new($message, $code); | |||||||||||
| 13 | 55 | $self->{status_code} = $status_code; | |||||||||||
| 14 | 55 | ▶ | $self->{more_info} = $more_info // q{}; | ||||||||||
|
Condition100%2/2
$more_info // ""
MC/DC100%1/1
$more_info // ""
$more_info
Truth table100%2/2
A
A= $more_info
| |||||||||||||
| 15 | 55 | ▶ | $self->{details} = $details // {}; | ||||||||||
|
Condition100%2/2
$details // {}
MC/DC100%1/1
$details // {}
$details
Truth table100%2/2
A
A= $details
| |||||||||||||
| 16 | 55 | return $self; | |||||||||||
| 17 | } | ||||||||||||
| 18 | |||||||||||||
| 19 | 13 | ▶ | sub get_status_code { return $_[0]{status_code} } | ||||||||||
|
Subroutine
get_status_code: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 20 | 8 | ▶ | sub get_more_info { return $_[0]{more_info} } | ||||||||||
|
Subroutine
get_more_info: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 21 | 4 | ▶ | sub get_details { return $_[0]{details} } | ||||||||||
|
Subroutine
get_details: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 22 | |||||||||||||
| 23 | 19 | 1; | |||||||||||
| 24 | |||||||||||||
| 25 | __END__ | ||||||||||||