mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
21 lines
669 B
Python
21 lines
669 B
Python
# TODO: Should these exceptions subclass existing python exceptions?
|
|
class ModelImageFileNotFoundException(Exception):
|
|
"""Raised when an image file is not found in storage."""
|
|
|
|
def __init__(self, message="Model image file not found"):
|
|
super().__init__(message)
|
|
|
|
|
|
class ModelImageFileSaveException(Exception):
|
|
"""Raised when an image cannot be saved."""
|
|
|
|
def __init__(self, message="Model image file not saved"):
|
|
super().__init__(message)
|
|
|
|
|
|
class ModelImageFileDeleteException(Exception):
|
|
"""Raised when an image cannot be deleted."""
|
|
|
|
def __init__(self, message="Model image file not deleted"):
|
|
super().__init__(message)
|