-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexceptions.py
More file actions
33 lines (21 loc) · 797 Bytes
/
exceptions.py
File metadata and controls
33 lines (21 loc) · 797 Bytes
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
# exceptions.py
class APIError(Exception):
"""Exception raised for errors in the API."""
def __init__(self, message):
self.message = message
super().__init__(self.message)
class ConfigurationError(Exception):
"""Exception raised for errors in the configuration."""
def __init__(self, message):
self.message = message
super().__init__(self.message)
class DatabaseError(Exception):
"""Exception raised for errors in database operations."""
def __init__(self, message):
self.message = message
super().__init__(self.message)
class ETLError(Exception):
"""Exception raised for errors during the ETL process."""
def __init__(self, message):
self.message = message
super().__init__(self.message)