-
Notifications
You must be signed in to change notification settings - Fork 421
/
Copy pathexceptions.py
45 lines (31 loc) · 899 Bytes
/
exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""
Idempotency errors
"""
class IdempotencyItemAlreadyExistsError(Exception):
"""
Item attempting to be inserted into persistence store already exists and is not expired
"""
class IdempotencyItemNotFoundError(Exception):
"""
Item does not exist in persistence store
"""
class IdempotencyAlreadyInProgressError(Exception):
"""
Execution with idempotency key is already in progress
"""
class IdempotencyInvalidStatusError(Exception):
"""
An invalid status was provided
"""
class IdempotencyValidationError(Exception):
"""
Payload does not match stored idempotency record
"""
class IdempotencyInconsistentStateError(Exception):
"""
State is inconsistent across multiple requests to persistence store
"""
class IdempotencyPersistenceLayerError(Exception):
"""
Unrecoverable error from the data store
"""