line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::PayPal::PaymentsAdvanced::Error::Authentication; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
65
|
use Moo; |
|
8
|
|
|
|
|
22
|
|
|
8
|
|
|
|
|
68
|
|
4
|
|
|
|
|
|
|
|
5
|
8
|
|
|
8
|
|
2624
|
use namespace::autoclean; |
|
8
|
|
|
|
|
21
|
|
|
8
|
|
|
|
|
70
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.000026'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
extends 'Throwable::Error'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with 'WebService::PayPal::PaymentsAdvanced::Role::HasParams'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# ABSTRACT: A Payments Advanced authentication error |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
WebService::PayPal::PaymentsAdvanced::Error::Authentication - A Payments Advanced authentication error |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 VERSION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
version 0.000026 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
use Try::Tiny; |
32
|
|
|
|
|
|
|
use WebService::PayPal::PaymentsAdvanced; |
33
|
|
|
|
|
|
|
my $payments = WebService::PayPal::PaymentsAdvanced->new(...); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
try { |
36
|
|
|
|
|
|
|
$payments->create_secure_token(...); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
catch { |
39
|
|
|
|
|
|
|
die $_ unless blessed $_; |
40
|
|
|
|
|
|
|
if ( |
41
|
|
|
|
|
|
|
$_->isa( |
42
|
|
|
|
|
|
|
'WebService::PayPal::PaymentsAdvanced::Error::Authentication') |
43
|
|
|
|
|
|
|
) { |
44
|
|
|
|
|
|
|
log_auth_error( |
45
|
|
|
|
|
|
|
message => $_->message, |
46
|
|
|
|
|
|
|
params => $_->params, |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
# handle other exceptions |
51
|
|
|
|
|
|
|
}; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 DESCRIPTION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This class represents an authentication error returned by PayPal. It extends |
56
|
|
|
|
|
|
|
L<Throwable::Error> and adds one attribute of its own. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 METHODS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
The C<$error->message()>, and C<$error->stack_trace()> methods are |
61
|
|
|
|
|
|
|
inherited from L<Throwable::Error>. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 params |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Returns a C<HashRef> of params which was received from to PayPal. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 AUTHOR |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Olaf Alders <olaf@wundercounter.com> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This software is copyright (c) 2020 by MaxMind, Inc. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
76
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |