Source code for repobee_plug.exception

"""Exceptions for repobee_plug.

.. module:: exception
    :synopsis: Exceptions for repobee_plug.

.. moduleauthor:: Simon Larsén
"""


[docs]class PlugError(Exception): """Base class for all repobee_plug exceptions."""
[docs]class HookNameError(PlugError): """Raise when a public method in a class that inherits from :py:class:`~repobee_plug.Plugin` does not have a hook name. """
[docs]class ExtensionCommandError(PlugError): """Raise when an :py:class:~repobee_plug.containers.ExtensionCommand: is incorrectly defined. """
[docs]class APIImplementationError(PlugError): """Raise when an API is defined incorrectly."""