File size: 655 Bytes
4eeba46 aef1f5a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
"""Custom exceptions for stroke-deepisles-demo."""
from __future__ import annotations
class StrokeDemoError(Exception):
"""Base exception for stroke-deepisles-demo."""
class DataLoadError(StrokeDemoError):
"""Failed to load data from HuggingFace Hub."""
class DockerNotAvailableError(StrokeDemoError):
"""Docker is not installed or not running."""
class DeepISLESError(StrokeDemoError):
"""DeepISLES inference failed."""
class MissingInputError(StrokeDemoError):
"""Required input files are missing."""
class DockerGPUNotAvailableError(StrokeDemoError):
"""GPU requested but NVIDIA Container Runtime not available."""
|