summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugin/exceptions.py
blob: de561e8e4742a58a2d629c9ee01b617f369b8565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
""" Exceptions for Bcfg2 Server Plugins."""

class PluginInitError(Exception):
    """Error raised in cases of
    :class:`Bcfg2.Server.Plugin.base.Plugin` initialization errors."""
    pass


class PluginExecutionError(Exception):
    """Error raised in case of
    :class:`Bcfg2.Server.Plugin.base.Plugin` execution errors."""
    pass


class MetadataConsistencyError(Exception):
    """This error gets raised when metadata is internally
    inconsistent."""
    pass


class MetadataRuntimeError(Exception):
    """This error is raised when the metadata engine is called prior
    to reading enough data, or for other
    :class:`Bcfg2.Server.Plugin.interfaces.Metadata` errors."""
    pass


class ValidationError(Exception):
    """ Exception raised by
    :class:`Bcfg2.Server.Plugin.interfaces.StructureValidator` and
    :class:`Bcfg2.Server.Plugin.interfaces.GoalValidator` objects """


class SpecificityError(Exception):
    """ Thrown by :class:`Bcfg2.Server.Plugin.helpers.Specificity` in
    case of filename parse failure."""
    pass