line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright 2019, Google LLC |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
4
|
|
|
|
|
|
|
# you may not use this file except in compliance with the License. |
5
|
|
|
|
|
|
|
# You may obtain a copy of the License at |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0 |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software |
10
|
|
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, |
11
|
|
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12
|
|
|
|
|
|
|
# See the License for the specific language governing permissions and |
13
|
|
|
|
|
|
|
# limitations under the License. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use strict; |
17
|
1
|
|
|
1
|
|
919
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
18
|
1
|
|
|
1
|
|
10
|
use version; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
19
|
1
|
|
|
1
|
|
6
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
20
|
|
|
|
|
|
|
# The following needs to be on one line because CPAN uses a particularly hacky |
21
|
|
|
|
|
|
|
# eval() to determine module versions. |
22
|
|
|
|
|
|
|
use Google::Ads::GoogleAds::Constants; our $VERSION = ${Google::Ads::GoogleAds::Constants::VERSION}; |
23
|
1
|
|
|
1
|
|
80
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
24
|
|
|
|
|
|
|
use Class::Std::Fast; |
25
|
1
|
|
|
1
|
|
9
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
26
|
|
|
|
|
|
|
# Class::Std-style attributes. Need to be kept in the same line. |
27
|
|
|
|
|
|
|
# These need to go in the same line for older Perl interpreters to understand. |
28
|
|
|
|
|
|
|
my %message_of : ATTR(:name<message>); |
29
|
|
|
|
|
|
|
my %code_of : ATTR(:name<code>); |
30
|
|
|
|
|
|
|
my %content_of : ATTR(:name<content>); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
my $self = shift; |
33
|
|
|
|
|
|
|
return |
34
|
0
|
|
|
0
|
0
|
|
sprintf("AuthError {\n message: %s\n code: %s\n" . " content: %s\n}", |
35
|
|
|
|
|
|
|
$self->get_message(), $self->get_code(), $self->get_content()); |
36
|
0
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
1
|
|
|
1
|
|
231
|
1; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=pod |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 NAME |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Google::Ads::GoogleAds::Common::AuthError |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Captures authorization error information. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Each of these attributes can be set via |
53
|
|
|
|
|
|
|
Google::Ads::GoogleAds::Common::AuthError->new(). |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Alternatively, there is a get_ and set_ method associated with each attribute |
56
|
|
|
|
|
|
|
for retrieving or setting them dynamically. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 message |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Holds the error message. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 code |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Holds the HTTP code associated with the error. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 content |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Holds the body of the error response. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Copyright 2019 Google LLC |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); |
75
|
|
|
|
|
|
|
you may not use this file except in compliance with the License. |
76
|
|
|
|
|
|
|
You may obtain a copy of the License at |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0 |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software |
81
|
|
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS, |
82
|
|
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
83
|
|
|
|
|
|
|
See the License for the specific language governing permissions and |
84
|
|
|
|
|
|
|
limitations under the License. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 REPOSITORY INFORMATION |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
$Rev: $ |
89
|
|
|
|
|
|
|
$LastChangedBy: $ |
90
|
|
|
|
|
|
|
$Id: $ |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |