Qwen-Image-Layered-MRP-MLX/src/mflux/exceptions.py
2024-10-06 14:59:15 -10:00

19 lines
561 B
Python

class MFluxException(Exception):
"""base class for all custom exceptions in mflux package."""
class ImageSavingException(MFluxException):
"""error occurred while attempting to save image to storage."""
class MetadataEmbedException(MFluxException):
"""error occurred while attempting to embed metadata in image"""
class MFluxUserException(MFluxException):
"""an exception raised by user behavior or intention."""
class StopImageGenerationException(MFluxUserException):
"""user has requested to stop a image generation in progress."""