FitTrackee/fittrackee/exceptions.py
2021-01-20 16:32:00 +01:00

12 lines
282 B
Python

from typing import Optional
class GenericException(Exception):
def __init__(
self, status: str, message: str, e: Optional[Exception] = None
) -> None:
super().__init__(message)
self.status = status
self.message = message
self.e = e