blob: d11e3730a4fb3e16d75921e3c87f57cae79e0c55 (
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):
"""
PyYaml or toml is 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.
"""
|