Source code for smart_media.exceptions
[docs]class SmartImageBaseException(Exception):
"""
Base for every SmartFormat template tag exceptions.
"""
pass
[docs]class InvalidFormatError(SmartImageBaseException):
"""
Exception to be raised from smart_format template tag when given format is
not invalid.
"""
pass
[docs]class IncompatibleSvgToBitmap(SmartImageBaseException):
"""
Exception to be raised from smart_format template tag when required format
is a Bitmap formt but the source is a SVG.
"""
pass
[docs]class IncompatibleBitmapToSvg(SmartImageBaseException):
"""
Exception to be raised from smart_format template tag when required format
is a SVG but the source is a Bitmap.
"""
pass