FitTrackee/fittrackee/exceptions.py

12 lines
282 B
Python
Raw Normal View History

2021-01-20 16:32:00 +01:00
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