Spaces:
Sleeping
Sleeping
Download src/exceptions.py from so-21-si/spot-the-diff: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/spaces/so-21-si/spot-the-diff/resolve/main/src/exceptions.py
- Command line
-
hf download hf://spaces/so-21-si/spot-the-diff/src/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/so-21-si/spot-the-diff/resolve/main/src/exceptions.py
290 Bytes
| """Custom exception classes.""" | |
| class ValidationError(Exception): | |
| """Raised when input validation fails.""" | |
| class ProcessingError(Exception): | |
| """Raised when AI processing fails.""" | |
| class ResourceExhaustedError(Exception): | |
| """Raised when server resources are exhausted.""" | |