Twilio/Exceptions/RestException.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 100% 4 / 4 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 100% 36 / 36 CC 3 SCAR 5.1
CC
3
Cov
100%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
« Twilio/Rest/Voice/V1.pm ↑ Summary Twilio/Exceptions/RestExceptionV1.pm »
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 // ""
l!l
1936
MC/DC100%1/1
$more_info // ""
$more_info
Truth table100%2/2
A
A= $more_info
Aresult
11
00
15 55 ▶ $self->{details} = $details // {};
Condition100%2/2
$details // {}
l!l
253
MC/DC100%1/1
$details // {}
$details
Truth table100%2/2
A
A= $details
Aresult
11
00
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__
« Twilio/Rest/Voice/V1.pm ↑ Summary Twilio/Exceptions/RestExceptionV1.pm »