Rearchitecture the project for Poetry support.

This commit is contained in:
Kat Inskip 2023-10-06 16:07:16 -07:00
parent 6cc517c163
commit 4ae3ddc2c0
16 changed files with 603 additions and 47 deletions

14
konawall/custom_errors.py Normal file
View file

@ -0,0 +1,14 @@
class RequestFailed(Exception):
"Raised when a request fails."
def __init__(self, status_code: int):
self.status_code = status_code
self.message = f"Request failed with status code {self.status_code}"
super().__init__(self.message)
class UnsupportedPlatform(Exception):
"Raised when the platform is not supported."
def __init__(self, message: str):
self.message = message
super().__init__(self.message)