Spaces:
Sleeping
Sleeping
Download src/fsv_streamlit/errors.py from Hoctar77/fedstylevalidator: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/Hoctar77/fedstylevalidator/resolve/main/src/fsv_streamlit/errors.py
- Command line
-
hf download hf://spaces/Hoctar77/fedstylevalidator/src/fsv_streamlit/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/Hoctar77/fedstylevalidator/resolve/main/src/fsv_streamlit/errors.py
382 Bytes
| from __future__ import annotations | |
| class AppError(Exception): | |
| """Base application error.""" | |
| class ValidationError(AppError): | |
| """Raised for invalid user input or invalid uploads.""" | |
| class ProviderError(AppError): | |
| """Raised when the FedStyleValidator call fails.""" | |
| class FileHandlingError(AppError): | |
| """Raised when temporary file or export handling fails.""" | |