This repository was archived by the owner on Dec 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.py
More file actions
80 lines (58 loc) · 1.22 KB
/
errors.py
File metadata and controls
80 lines (58 loc) · 1.22 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""
This file contains errors thrown by Turnip Bot internally
"""
class EndPointValidation(Exception):
"""
Raised when an invalid API endpoint is given
"""
pass
class InvalidAPICall(Exception):
"""
Raised when an invalid API returns something other than 200
"""
pass
class FileNotCreated(Exception):
"""
Raised when a requested file to upload hasn't been created
"""
pass
class AWSError(Exception):
"""
For catching AWS error like S3 and dynamoDB
"""
pass
class InvalidDateTime(Exception):
"""
For catching invalid date/time
"""
pass
class InvalidPeriod(Exception):
"""
Raised when an invalid period is given
"""
pass
class InvalidDateFormat(Exception):
"""
Raised when an invalid date format is given
"""
pass
class BellsOutOfRange(Exception):
"""
Raised when the value in bells is out of range
"""
pass
class NoData(Exception):
"""
Raised when there's no data to work with
"""
pass
class DataCorrect(Exception):
"""
Raised when data in DB is already valid
"""
pass
class InternalError(Exception):
"""
Report an internal error has happened
"""
pass