mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
23 lines
615 B
Python
23 lines
615 B
Python
"""Shared exceptions for recipe services."""
|
|
from __future__ import annotations
|
|
|
|
|
|
class RecipeServiceError(Exception):
|
|
"""Base exception for recipe service failures."""
|
|
|
|
|
|
class RecipeValidationError(RecipeServiceError):
|
|
"""Raised when a request payload fails validation."""
|
|
|
|
|
|
class RecipeNotFoundError(RecipeServiceError):
|
|
"""Raised when a recipe resource cannot be located."""
|
|
|
|
|
|
class RecipeDownloadError(RecipeServiceError):
|
|
"""Raised when remote recipe assets cannot be downloaded."""
|
|
|
|
|
|
class RecipeConflictError(RecipeServiceError):
|
|
"""Raised when a conflicting recipe state is detected."""
|