comparison env/lib/python3.7/site-packages/boto/fps/exception.py @ 5:9b1c78e6ba9c draft default tip

"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author shellac
date Mon, 01 Jun 2020 08:59:25 -0400
parents 79f47841a781
children
comparison
equal deleted inserted replaced
4:79f47841a781 5:9b1c78e6ba9c
1 from boto.exception import BotoServerError
2
3
4 class ResponseErrorFactory(BotoServerError):
5
6 def __new__(cls, *args, **kw):
7 error = BotoServerError(*args, **kw)
8 newclass = globals().get(error.error_code, ResponseError)
9 obj = newclass.__new__(newclass, *args, **kw)
10 obj.__dict__.update(error.__dict__)
11 return obj
12
13
14 class ResponseError(BotoServerError):
15 """Undefined response error.
16 """
17 retry = False
18
19 def __repr__(self):
20 return '{0}({1}, {2},\n\t{3})'.format(self.__class__.__name__,
21 self.status, self.reason,
22 self.error_message)
23
24 def __str__(self):
25 return 'FPS Response Error: {0.status} {0.__class__.__name__} {1}\n' \
26 '{2}\n' \
27 '{0.error_message}'.format(self,
28 self.retry and '(Retriable)' or '',
29 self.__doc__.strip())
30
31
32 class RetriableResponseError(ResponseError):
33 retry = True
34
35
36 class AccessFailure(RetriableResponseError):
37 """Account cannot be accessed.
38 """
39
40
41 class AccountClosed(RetriableResponseError):
42 """Account is not active.
43 """
44
45
46 class AccountLimitsExceeded(RetriableResponseError):
47 """The spending or receiving limit on the account is exceeded.
48 """
49
50
51 class AmountOutOfRange(ResponseError):
52 """The transaction amount is more than the allowed range.
53 """
54
55
56 class AuthFailure(RetriableResponseError):
57 """AWS was not able to validate the provided access credentials.
58 """
59
60
61 class ConcurrentModification(RetriableResponseError):
62 """A retriable error can happen when two processes try to modify the
63 same data at the same time.
64 """
65
66
67 class DuplicateRequest(ResponseError):
68 """A different request associated with this caller reference already
69 exists.
70 """
71
72
73 class InactiveInstrument(ResponseError):
74 """Payment instrument is inactive.
75 """
76
77
78 class IncompatibleTokens(ResponseError):
79 """The transaction could not be completed because the tokens have
80 incompatible payment instructions.
81 """
82
83
84 class InstrumentAccessDenied(ResponseError):
85 """The external calling application is not the recipient for this
86 postpaid or prepaid instrument.
87 """
88
89
90 class InstrumentExpired(ResponseError):
91 """The prepaid or the postpaid instrument has expired.
92 """
93
94
95 class InsufficientBalance(RetriableResponseError):
96 """The sender, caller, or recipient's account balance has
97 insufficient funds to complete the transaction.
98 """
99
100
101 class InternalError(RetriableResponseError):
102 """A retriable error that happens due to some transient problem in
103 the system.
104 """
105
106
107 class InvalidAccountState(RetriableResponseError):
108 """The account is either suspended or closed.
109 """
110
111
112 class InvalidAccountState_Caller(RetriableResponseError):
113 """The developer account cannot participate in the transaction.
114 """
115
116
117 class InvalidAccountState_Recipient(RetriableResponseError):
118 """Recipient account cannot participate in the transaction.
119 """
120
121
122 class InvalidAccountState_Sender(RetriableResponseError):
123 """Sender account cannot participate in the transaction.
124 """
125
126
127 class InvalidCallerReference(ResponseError):
128 """The Caller Reference does not have a token associated with it.
129 """
130
131
132 class InvalidClientTokenId(ResponseError):
133 """The AWS Access Key Id you provided does not exist in our records.
134 """
135
136
137 class InvalidDateRange(ResponseError):
138 """The end date specified is before the start date or the start date
139 is in the future.
140 """
141
142
143 class InvalidParams(ResponseError):
144 """One or more parameters in the request is invalid.
145 """
146
147
148 class InvalidPaymentInstrument(ResponseError):
149 """The payment method used in the transaction is invalid.
150 """
151
152
153 class InvalidPaymentMethod(ResponseError):
154 """Specify correct payment method.
155 """
156
157
158 class InvalidRecipientForCCTransaction(ResponseError):
159 """This account cannot receive credit card payments.
160 """
161
162
163 class InvalidSenderRoleForAccountType(ResponseError):
164 """This token cannot be used for this operation.
165 """
166
167
168 class InvalidTokenId(ResponseError):
169 """You did not install the token that you are trying to cancel.
170 """
171
172
173 class InvalidTokenId_Recipient(ResponseError):
174 """The recipient token specified is either invalid or canceled.
175 """
176
177
178 class InvalidTokenId_Sender(ResponseError):
179 """The sender token specified is either invalid or canceled or the
180 token is not active.
181 """
182
183
184 class InvalidTokenType(ResponseError):
185 """An invalid operation was performed on the token, for example,
186 getting the token usage information on a single use token.
187 """
188
189
190 class InvalidTransactionId(ResponseError):
191 """The specified transaction could not be found or the caller did not
192 execute the transaction or this is not a Pay or Reserve call.
193 """
194
195
196 class InvalidTransactionState(ResponseError):
197 """The transaction is not complete, or it has temporarily failed.
198 """
199
200
201 class NotMarketplaceApp(RetriableResponseError):
202 """This is not an marketplace application or the caller does not
203 match either the sender or the recipient.
204 """
205
206
207 class OriginalTransactionFailed(ResponseError):
208 """The original transaction has failed.
209 """
210
211
212 class OriginalTransactionIncomplete(RetriableResponseError):
213 """The original transaction is still in progress.
214 """
215
216
217 class PaymentInstrumentNotCC(ResponseError):
218 """The payment method specified in the transaction is not a credit
219 card. You can only use a credit card for this transaction.
220 """
221
222
223 class PaymentMethodNotDefined(ResponseError):
224 """Payment method is not defined in the transaction.
225 """
226
227
228 class PrepaidFundingLimitExceeded(RetriableResponseError):
229 """An attempt has been made to fund the prepaid instrument
230 at a level greater than its recharge limit.
231 """
232
233
234 class RefundAmountExceeded(ResponseError):
235 """The refund amount is more than the refundable amount.
236 """
237
238
239 class SameSenderAndRecipient(ResponseError):
240 """The sender and receiver are identical, which is not allowed.
241 """
242
243
244 class SameTokenIdUsedMultipleTimes(ResponseError):
245 """This token is already used in earlier transactions.
246 """
247
248
249 class SenderNotOriginalRecipient(ResponseError):
250 """The sender in the refund transaction is not
251 the recipient of the original transaction.
252 """
253
254
255 class SettleAmountGreaterThanDebt(ResponseError):
256 """The amount being settled or written off is
257 greater than the current debt.
258 """
259
260
261 class SettleAmountGreaterThanReserveAmount(ResponseError):
262 """The amount being settled is greater than the reserved amount.
263 """
264
265
266 class SignatureDoesNotMatch(ResponseError):
267 """The request signature calculated by Amazon does not match the
268 signature you provided.
269 """
270
271
272 class TokenAccessDenied(ResponseError):
273 """Permission to cancel the token is denied.
274 """
275
276
277 class TokenNotActive(ResponseError):
278 """The token is canceled.
279 """
280
281
282 class TokenNotActive_Recipient(ResponseError):
283 """The recipient token is canceled.
284 """
285
286
287 class TokenNotActive_Sender(ResponseError):
288 """The sender token is canceled.
289 """
290
291
292 class TokenUsageError(ResponseError):
293 """The token usage limit is exceeded.
294 """
295
296
297 class TransactionDenied(ResponseError):
298 """The transaction is not allowed.
299 """
300
301
302 class TransactionFullyRefundedAlready(ResponseError):
303 """The transaction has already been completely refunded.
304 """
305
306
307 class TransactionTypeNotRefundable(ResponseError):
308 """You cannot refund this transaction.
309 """
310
311
312 class UnverifiedAccount_Recipient(ResponseError):
313 """The recipient's account must have a verified bank account or a
314 credit card before this transaction can be initiated.
315 """
316
317
318 class UnverifiedAccount_Sender(ResponseError):
319 """The sender's account must have a verified U.S. credit card or
320 a verified U.S bank account before this transaction can be
321 initiated.
322 """
323
324
325 class UnverifiedBankAccount(ResponseError):
326 """A verified bank account should be used for this transaction.
327 """
328
329
330 class UnverifiedEmailAddress_Caller(ResponseError):
331 """The caller account must have a verified email address.
332 """
333
334
335 class UnverifiedEmailAddress_Recipient(ResponseError):
336 """The recipient account must have a verified
337 email address for receiving payments.
338 """
339
340
341 class UnverifiedEmailAddress_Sender(ResponseError):
342 """The sender account must have a verified
343 email address for this payment.
344 """