clan-core/pkgs/clan-cli/clan_cli/errors.py

15 lines
303 B
Python
Raw Normal View History

2023-07-26 13:50:27 +00:00
class ClanError(Exception):
"""Base class for exceptions in this module."""
pass
2023-11-21 13:34:31 +00:00
class ClanHttpError(ClanError):
status_code: int
msg: str
def __init__(self, status_code: int, msg: str):
self.status_code = status_code
self.msg = msg
super().__init__(msg)