Team Ai
Apppublic

Underground-Digital/Workflow-Engine

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
exception.py18 linesDownload Raw Back to libs
1from typing import Optional2 3from werkzeug.exceptions import HTTPException4 5 6class BaseHTTPException(HTTPException):7    error_code: str = "unknown"8    data: Optional[dict] = None9 10    def __init__(self, description=None, response=None):11        super().__init__(description, response)12 13        self.data = {14            "code": self.error_code,15            "message": self.description,16            "status": self.code,17        }18