clan-core/pkgs/clan-cli/clan_cli/errors.py
Jörg Thalheim 8759e5a049
All checks were successful
checks-impure / test (pull_request) Successful in 1m35s
checks / test (pull_request) Successful in 2m57s
drop dependency on fastapi in the cli
2023-11-21 15:09:18 +01:00

15 lines
303 B
Python

class ClanError(Exception):
"""Base class for exceptions in this module."""
pass
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)