File size: 466 Bytes
cf5a228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""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."""