habit_tracker / src /utils /exceptions.py
masoomtariq's picture
commit
0a92159
Raw
History Blame Contribute Delete
322 Bytes
from typing import Any
class CommandError(Exception):
def __init__(self, status_code: int, error_code: str, message: str, details: Any = None):
self.status_code = status_code
self.error_code = error_code
self.message = message
self.details = details
super().__init__(message)