[docs]classTermImageError(Exception):"""Exception baseclass. Raised for generic errors."""
[docs]classInvalidSizeError(TermImageError):"""Raised for invalid image sizes."""
[docs]classRenderError(TermImageError):"""Raised for errors that occur **during** :term:`rendering`. If the direct cause of the error is an exception, it should typically be attached as the context of this exception i.e ``raise RenderError(...) from exc``. """
[docs]classStyleError(TermImageError):"""Raised for errors pertaining to the Style API."""
[docs]classURLNotFoundError(TermImageError,FileNotFoundError):"""Raised for 404 errors."""
[docs]classUrwidImageError(TermImageError):"""Raised for errors specific to :py:class:`~term_image.widget.UrwidImage`."""