Source code for apache_manager.exceptions

# Monitor and control Apache web server workers from Python.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: May 27, 2016
# URL: https://apache-manager.readthedocs.io

"""
Custom exceptions raised by the Apache manager.

The :mod:`~apache_manager.exceptions` module defines custom exceptions raised
by the Apache manager.
"""


[docs]class ApacheManagerError(Exception): """Base exception for custom exceptions raised by :mod:`apache_manager`."""
[docs]class AddressDiscoveryError(ApacheManagerError): """Raised by :attr:`.ApacheManager.listen_addresses` when port discovery fails."""
[docs]class StatusPageError(ApacheManagerError): """Raised by :attr:`.ApacheManager.workers` when the status page can't be retrieved."""