19 lines
561 B
Python
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."""
|