meringue.thumbnail.exceptions ¤
ThumbnailError ¤
Bases: Exception
Base thumbnail exception
Attributes:
-
message
–Custom error message.
-
code
–Custom error code.
Source code in meringue/thumbnail/exceptions.py
WrongPropertyOptionError ¤
WrongPropertyOptionError(
prop: str,
option: str,
message: str | None = None,
code: str | None = None,
)
Bases: ThumbnailError
Exception wrong property option
Attributes:
-
prop
–The property with the problem.
-
option
–Value with which there was a problem.
-
message
–Custom error message.
-
code
–Custom error code.
Source code in meringue/thumbnail/exceptions.py
def __init__(self, prop: str, option: str, message: str | None = None, code: str | None = None):
"""
Attributes:
prop: The property with the problem.
option: Value with which there was a problem.
message: Custom error message.
code: Custom error code.
"""
message = (message or self.default_message).format(prop=prop, option=option)
code = code or self.default_code
super().__init__(message, code)
ActionError ¤
Bases: ThumbnailError
Action exception
Attributes:
-
message
–Custom error message.
-
code
–Custom error code.
Source code in meringue/thumbnail/exceptions.py
ThumbnailerError ¤
Bases: ThumbnailError
Thumbnailer exception
Attributes:
-
message
–Custom error message.
-
code
–Custom error code.
Source code in meringue/thumbnail/exceptions.py
WrongActionOrPropertyError ¤
Bases: ThumbnailerError
Wrong action or property exception
Attributes:
-
job
–Action with problem.
-
message
–Custom error message.
-
code
–Custom error code.
Source code in meringue/thumbnail/exceptions.py
WrongFormatError ¤
Bases: ThumbnailerError
Wrong action or property exception
Attributes:
-
out_format
–Problem format.
-
message
–Custom error message.
-
code
–Custom error code.