aboutsummaryrefslogtreecommitdiffstats
path: root/config_file/exceptions.py
blob: d1b466be047eaad2d4184549fd5384d1d8fa0a25 (plain) (blame)
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
class ConfigFileError(Exception):
    """A generic error from the package."""


class MissingDependencyError(ConfigFileError):
    """
    yaml or toml dependencies were not installed,
    but the parsers for them were attempted to be used.
    """


class UnrecognizedFileError(ConfigFileError):
    """
    A missing file extension or a file type not supported.
    """


class ParsingError(ConfigFileError):
    """Unable to parse the configuration file."""


class MissingKeyError(ParsingError):
    """
    A key that was specified (to retrieve, delete, etc.)
    is not in the file.
    """