Rural_Water / backend /utils /exceptions.py
KaustavMP
Initial commit
dc0ae2c
Raw History Blame Contribute Delete
193 Bytes
class AppError(Exception):
def __init__(self, message: str, status_code: int = 400):
super().__init__(message)
self.message = message
self.status_code = status_code