Source code for html_checker.exceptions

"""
Exceptions
==========

Specific application exceptions.
"""


[docs] class HtmlCheckerUnexpectedException(Exception): """ An exceptions which should not never raise from code. DON'T use this in code, this is reserved for tests purposes only. """ pass
[docs] class HtmlCheckerBaseException(Exception): """ Base for every application exceptions. """ pass
[docs] class ExportError(HtmlCheckerBaseException): """ Exception to be raised when report export fail. """ pass
[docs] class PathInvalidError(HtmlCheckerBaseException): """ Exception to be raised when given path is invalid. """ pass
[docs] class ReportError(HtmlCheckerBaseException): """ Exception to be raised when validator return invalid report or report export has failed. """ pass
[docs] class SitemapInvalidError(HtmlCheckerBaseException): """ Exception to be raised when sitemap ressource is invalid. """ pass
[docs] class HTTPServerError(HtmlCheckerBaseException): """ Exception to be raised when an error occurs with HTTP server. """ pass
[docs] class ValidatorError(HtmlCheckerBaseException): """ Exception to be raised when validator fail. """ pass