lib/WebService/Braintree/ValidationError.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/WebService/Braintree/TransparentRedirect.pm ↑ Summary lib/WebService/Braintree/WebhookNotification.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::ValidationError;
4 22 $WebService::Braintree::ValidationError::VERSION = '1.7';
5 =head1 NAME
6  
7 WebService::Braintree::ValidationError
8  
9 =head1 PURPOSE
10  
11 This class represents an error, usually from a failed validation.
12  
13 This class will only be created as part of a L<error response|WebService::Braintree::ErrorResult>.
14  
15 =cut
16  
17 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 =head1 METHODS
20  
21 =head2 attribute()
22  
23 This is the attribute in the unsuccessful request which failed validation.
24  
25 =cut
26  
27 22 has 'attribute' => (is => 'ro');
28  
29 =head2 code()
30  
31 This is the validation error code returned from Braintree.
32  
33 =cut
34  
35 22 has 'code' => (is => 'ro');
36  
37 =head2 message()
38  
39 This is the explanatory message provided by Braintree for this error.
40  
41 =cut
42  
43 22 has 'message' => (is => 'ro');
44  
45 22 __PACKAGE__->meta->make_immutable;
46  
47 22 1;
48 __END__
« lib/WebService/Braintree/TransparentRedirect.pm ↑ Summary lib/WebService/Braintree/WebhookNotification.pm »