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