Business/CyberSource/Exception/Response.pm

filter: Statementstmt 96.3% 26 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod n/a totaltotal 94.2% 33 / 35 CC 1 SCAR 1.2
CC
1
Cov
96%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Business/CyberSource/Exception/SOAPFault.pm ↑ Summary Business/CyberSource/Factory/Request.pm »
1 package Business::CyberSource::Exception::Response;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 our $VERSION = '0.010008'; # VERSION
7  
8 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use MooseX::Aliases;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 extends 'Business::CyberSource::Exception';
12 2 with 'Business::CyberSource::Response::Role::Base',
13 'Business::CyberSource::Role::Traceable' => {
14 -excludes => [qw( trace )]
15 };
16  
17 1 ▶sub _build_message {
Subroutine _build_message: called CC=1 SCAR=0.0
18 1 my $self = shift;
19 1 return $self->decision . ' ' . $self->reason_text;
20 }
21  
22 has '+value' => (
23 0 ▶ default => sub { return $_[0]->reason_code },
Subroutine __ANON__: not called CC=1 SCAR=6.9
24 2 );
25  
26 2 __PACKAGE__->meta->make_immutable;
27 2 1;
28 # ABSTRACT: response thrown as an object because of ERROR state
29  
30 __END__
« Business/CyberSource/Exception/SOAPFault.pm ↑ Summary Business/CyberSource/Factory/Request.pm »