Spaces:
Sleeping
Sleeping
Download app/shared/errors/exceptions.py from AlleksDev/frimeet-api-nlp: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/AlleksDev/frimeet-api-nlp/resolve/main/app/shared/errors/exceptions.py
- Command line
-
hf download hf://spaces/AlleksDev/frimeet-api-nlp/app/shared/errors/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/AlleksDev/frimeet-api-nlp/resolve/main/app/shared/errors/exceptions.py
298 Bytes
| class AppError(Exception): | |
| def __init__( | |
| self, | |
| message: str, | |
| code: str = "application_error", | |
| status_code: int = 400, | |
| ) -> None: | |
| super().__init__(message) | |
| self.message = message | |
| self.code = code | |
| self.status_code = status_code | |