Download app/shared/errors.py from vooom/Kavox: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/vooom/Kavox/resolve/main/app/shared/errors.py
- Command line
-
hf download hf://spaces/vooom/Kavox/app/shared/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/vooom/Kavox/resolve/main/app/shared/errors.py
466 Bytes
| """Error types that cross brick boundaries.""" | |
| from __future__ import annotations | |
| class PipelineError(Exception): | |
| """A job step failed with a stable, user-facing error code (e.g. ``E_DOWNLOAD_FAILED``).""" | |
| def __init__(self, code: str, message: str): | |
| super().__init__(message) | |
| self.code = code | |
| self.message = message | |
| class Cancelled(Exception): | |
| """The job was cancelled; raised from progress callbacks to stop work early.""" | |