Kavox / app /shared /errors.py
vooom's picture
Deploy backend from 075ba07
cf5a228 verified
Raw History Blame Contribute Delete
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."""