# -*- coding: utf-8 -*-
"""
This module holds the application specific exceptions.
"""
[docs]class OCSPBadResponse(Exception):
"""
Gets raised when a OCSP staple is not valid.
"""
pass
[docs]class RenewalRequirementMissing(Exception):
"""
Gets raised when a OCSP renewal is run while not all requirements are met.
"""
pass
[docs]class SocketError(Exception):
"""
Gets raised by the :class:`OCSPAdder` when it is impossible to connect to
or use its socket.
"""
pass
[docs]class OCSPAdderBadResponse(Exception):
"""
Gets raised when the HAProxy does not respond with "OCSP Response updated"
"""
[docs]class CertFileAccessError(Exception):
"""
Gets raised when a file can't be accessed at all.
"""
pass
[docs]class CertParsingError(Exception):
"""
Gets raised when something went wrong while parsing the certificate file.
"""
pass
[docs]class CertValidationError(Exception):
"""
Gets raised when something went wrong while validating the certificate
chain.
.. Note: This may or may not include an OCSP staple.
"""
pass