| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ErrorType; |
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1365
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
32
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
34
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
|
11
|
|
|
|
|
|
|
# File: ................. ErrorType.pm |
|
12
|
|
|
|
|
|
|
# Generated by: ......... genEBayApiDataTypes.pl |
|
13
|
|
|
|
|
|
|
# Last Generated: ....... 08/24/2008 16:44 |
|
14
|
|
|
|
|
|
|
# API Release Number: ... 579 |
|
15
|
|
|
|
|
|
|
# |
|
16
|
|
|
|
|
|
|
########################################################################## |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
eBay::API::XML::DataType::ErrorType |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
These are request errors (as opposed to system errors) that occur due to problems |
|
25
|
|
|
|
|
|
|
with business-level data (e.g., an invalid combination of arguments) that |
|
26
|
|
|
|
|
|
|
the application passed in. |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 INHERITANCE |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
eBay::API::XML::DataType::ErrorType inherits from the L class |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
|
40
|
|
|
|
|
|
|
|
|
41
|
1
|
|
|
1
|
|
44
|
use eBay::API::XML::BaseDataType; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ErrorParameterType; |
|
45
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::ErrorClassificationCodeType; |
|
46
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::SeverityCodeType; |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
my @gaProperties = ( [ 'ErrorClassification', 'ns:ErrorClassificationCodeType', '' |
|
50
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::ErrorClassificationCodeType', '' ] |
|
51
|
|
|
|
|
|
|
, [ 'ErrorCode', 'xs:token', '', '', '' ] |
|
52
|
|
|
|
|
|
|
, [ 'ErrorParameters', 'ns:ErrorParameterType', '1' |
|
53
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ErrorParameterType', '1' ] |
|
54
|
|
|
|
|
|
|
, [ 'LongMessage', 'xs:string', '', '', '' ] |
|
55
|
|
|
|
|
|
|
, [ 'SeverityCode', 'ns:SeverityCodeType', '' |
|
56
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::SeverityCodeType', '' ] |
|
57
|
|
|
|
|
|
|
, [ 'ShortMessage', 'xs:string', '', '', '' ] |
|
58
|
|
|
|
|
|
|
, [ 'UserDisplayHint', 'xs:boolean', '', '', '' ] |
|
59
|
|
|
|
|
|
|
); |
|
60
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
my @gaAttributes = ( |
|
63
|
|
|
|
|
|
|
); |
|
64
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 Subroutines: |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
sub new { |
|
71
|
|
|
|
|
|
|
my $classname = shift; |
|
72
|
|
|
|
|
|
|
my %args = @_; |
|
73
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
|
74
|
|
|
|
|
|
|
return $self; |
|
75
|
|
|
|
|
|
|
} |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
sub isScalar { |
|
78
|
|
|
|
|
|
|
return 0; |
|
79
|
|
|
|
|
|
|
} |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 setErrorClassification() |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
API errors are divided between two classes: system errors and request errors. |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
# Argument: 'ns:ErrorClassificationCodeType' |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
sub setErrorClassification { |
|
92
|
|
|
|
|
|
|
my $self = shift; |
|
93
|
|
|
|
|
|
|
$self->{'ErrorClassification'} = shift |
|
94
|
|
|
|
|
|
|
} |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 getErrorClassification() |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Calls: Returned: Conditionally |
|
99
|
|
|
|
|
|
|
AllCalls: |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
# Returns: 'ns:ErrorClassificationCodeType' |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
sub getErrorClassification { |
|
106
|
|
|
|
|
|
|
my $self = shift; |
|
107
|
|
|
|
|
|
|
return $self->{'ErrorClassification'}; |
|
108
|
|
|
|
|
|
|
} |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head2 setErrorCode() |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
A unique code that identifies the particular error condition that occurred. |
|
114
|
|
|
|
|
|
|
Your application can use error codes as identifiers |
|
115
|
|
|
|
|
|
|
in your customized error-handling algorithms. |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
# Argument: 'xs:token' |
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
sub setErrorCode { |
|
122
|
|
|
|
|
|
|
my $self = shift; |
|
123
|
|
|
|
|
|
|
$self->{'ErrorCode'} = shift |
|
124
|
|
|
|
|
|
|
} |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head2 getErrorCode() |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Calls: Returned: Conditionally |
|
129
|
|
|
|
|
|
|
AllCalls: |
|
130
|
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
# Returns: 'xs:token' |
|
132
|
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=cut |
|
134
|
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
sub getErrorCode { |
|
136
|
|
|
|
|
|
|
my $self = shift; |
|
137
|
|
|
|
|
|
|
return $self->{'ErrorCode'}; |
|
138
|
|
|
|
|
|
|
} |
|
139
|
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=head2 setErrorParameters() |
|
142
|
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
This optional element carries a list of context-specific |
|
144
|
|
|
|
|
|
|
error variables that indicate details about the error condition. |
|
145
|
|
|
|
|
|
|
These are useful when multiple instances of ErrorType are returned. |
|
146
|
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
# Argument: reference to an array |
|
148
|
|
|
|
|
|
|
of 'ns:ErrorParameterType' |
|
149
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |
|
151
|
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
sub setErrorParameters { |
|
153
|
|
|
|
|
|
|
my $self = shift; |
|
154
|
|
|
|
|
|
|
$self->{'ErrorParameters'} = |
|
155
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
|
156
|
|
|
|
|
|
|
} |
|
157
|
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=head2 getErrorParameters() |
|
159
|
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
Calls: Returned: Conditionally |
|
161
|
|
|
|
|
|
|
AllCalls: |
|
162
|
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
# Returns: reference to an array |
|
164
|
|
|
|
|
|
|
of 'ns:ErrorParameterType' |
|
165
|
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=cut |
|
167
|
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
sub getErrorParameters { |
|
169
|
|
|
|
|
|
|
my $self = shift; |
|
170
|
|
|
|
|
|
|
return $self->_getDataTypeArray('ErrorParameters'); |
|
171
|
|
|
|
|
|
|
} |
|
172
|
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=head2 setLongMessage() |
|
175
|
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
A more detailed description of the condition that raised the error. |
|
177
|
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
# Argument: 'xs:string' |
|
179
|
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=cut |
|
181
|
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
sub setLongMessage { |
|
183
|
|
|
|
|
|
|
my $self = shift; |
|
184
|
|
|
|
|
|
|
$self->{'LongMessage'} = shift |
|
185
|
|
|
|
|
|
|
} |
|
186
|
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
=head2 getLongMessage() |
|
188
|
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
Calls: Returned: Conditionally |
|
190
|
|
|
|
|
|
|
AllCalls: |
|
191
|
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
# Returns: 'xs:string' |
|
193
|
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=cut |
|
195
|
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
sub getLongMessage { |
|
197
|
|
|
|
|
|
|
my $self = shift; |
|
198
|
|
|
|
|
|
|
return $self->{'LongMessage'}; |
|
199
|
|
|
|
|
|
|
} |
|
200
|
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=head2 setSeverityCode() |
|
203
|
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
Indicates whether the error is a severe error (causing the request to fail) |
|
205
|
|
|
|
|
|
|
or an informational error (a warning) that should be communicated to the user. |
|
206
|
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
# Argument: 'ns:SeverityCodeType' |
|
208
|
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=cut |
|
210
|
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
sub setSeverityCode { |
|
212
|
|
|
|
|
|
|
my $self = shift; |
|
213
|
|
|
|
|
|
|
$self->{'SeverityCode'} = shift |
|
214
|
|
|
|
|
|
|
} |
|
215
|
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
=head2 getSeverityCode() |
|
217
|
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
Calls: Returned: Conditionally |
|
219
|
|
|
|
|
|
|
AllCalls: |
|
220
|
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
# Returns: 'ns:SeverityCodeType' |
|
222
|
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
=cut |
|
224
|
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
sub getSeverityCode { |
|
226
|
|
|
|
|
|
|
my $self = shift; |
|
227
|
|
|
|
|
|
|
return $self->{'SeverityCode'}; |
|
228
|
|
|
|
|
|
|
} |
|
229
|
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=head2 setShortMessage() |
|
232
|
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
A brief description of the condition that raised the error. |
|
234
|
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
# Argument: 'xs:string' |
|
236
|
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
=cut |
|
238
|
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
sub setShortMessage { |
|
240
|
|
|
|
|
|
|
my $self = shift; |
|
241
|
|
|
|
|
|
|
$self->{'ShortMessage'} = shift |
|
242
|
|
|
|
|
|
|
} |
|
243
|
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
=head2 getShortMessage() |
|
245
|
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
Calls: Returned: Conditionally |
|
247
|
|
|
|
|
|
|
AllCalls: |
|
248
|
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
# Returns: 'xs:string' |
|
250
|
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
=cut |
|
252
|
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
sub getShortMessage { |
|
254
|
|
|
|
|
|
|
my $self = shift; |
|
255
|
|
|
|
|
|
|
return $self->{'ShortMessage'}; |
|
256
|
|
|
|
|
|
|
} |
|
257
|
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
=head2 setUserDisplayHint() |
|
260
|
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
Indicates whether the error message text is intended to be displayed to an end user |
|
262
|
|
|
|
|
|
|
or intended only to be parsed by the application. If true or not present (the default), |
|
263
|
|
|
|
|
|
|
the message text is intended for the end user. If false, the message text is intended for |
|
264
|
|
|
|
|
|
|
the application, and the application should translate the error into a more appropriate message. |
|
265
|
|
|
|
|
|
|
Only applicable to Item Specifics errors and warnings returned from listing requests. |
|
266
|
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
268
|
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
=cut |
|
270
|
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
sub setUserDisplayHint { |
|
272
|
|
|
|
|
|
|
my $self = shift; |
|
273
|
|
|
|
|
|
|
$self->{'UserDisplayHint'} = shift |
|
274
|
|
|
|
|
|
|
} |
|
275
|
|
|
|
|
|
|
|
|
276
|
|
|
|
|
|
|
=head2 isUserDisplayHint() |
|
277
|
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
Calls: AddItem |
|
279
|
|
|
|
|
|
|
AddLiveAuctionItem |
|
280
|
|
|
|
|
|
|
RelistItem |
|
281
|
|
|
|
|
|
|
ReviseItem |
|
282
|
|
|
|
|
|
|
ReviseLiveAuctionItem |
|
283
|
|
|
|
|
|
|
VerifyAddItem |
|
284
|
|
|
|
|
|
|
Returned: Conditionally |
|
285
|
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
|
287
|
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
=cut |
|
289
|
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
sub isUserDisplayHint { |
|
291
|
|
|
|
|
|
|
my $self = shift; |
|
292
|
|
|
|
|
|
|
return $self->{'UserDisplayHint'}; |
|
293
|
|
|
|
|
|
|
} |
|
294
|
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
|
|
296
|
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
|
|
299
|
|
|
|
|
|
|
## Attribute and Property lists |
|
300
|
|
|
|
|
|
|
sub getPropertiesList { |
|
301
|
|
|
|
|
|
|
my $self = shift; |
|
302
|
|
|
|
|
|
|
return \@gaProperties; |
|
303
|
|
|
|
|
|
|
} |
|
304
|
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
sub getAttributesList { |
|
306
|
|
|
|
|
|
|
my $self = shift; |
|
307
|
|
|
|
|
|
|
return \@gaAttributes; |
|
308
|
|
|
|
|
|
|
} |
|
309
|
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
|
|
312
|
|
|
|
|
|
|
1; |