Download src/errors.py from JSCPPProgrammer/anima-gradio-zerogpu-space: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/spaces/JSCPPProgrammer/anima-gradio-zerogpu-space/resolve/main/src/errors.py
- Command line
-
hf download hf://spaces/JSCPPProgrammer/anima-gradio-zerogpu-space/src/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/JSCPPProgrammer/anima-gradio-zerogpu-space/resolve/main/src/errors.py
345 Bytes
| """User-display-safe error types.""" | |
| class UserFacingError(Exception): | |
| """Raised for conditions that should be shown to end users (clear message).""" | |
| def __init__(self, message: str, *, details: str | None = None) -> None: | |
| super().__init__(message) | |
| self.user_message = message | |
| self.details = details | |