aboutsummaryrefslogtreecommitdiffstats
path: root/config_file/exceptions.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-07-19 20:28:40 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-07-19 20:28:40 -0500
commit6eab76b24dfc831b8c41c445d98175c3276b20a5 (patch)
tree21c025003f4ca3e02e6b67a1c09ea7ab983fa7c9 /config_file/exceptions.py
parentAdd napoleon to transition to Google docstring format (diff)
downloadconfig-file-6eab76b24dfc831b8c41c445d98175c3276b20a5.zip
Add UnrecognizedFileError and MissingDependencyError
Diffstat (limited to 'config_file/exceptions.py')
-rw-r--r--config_file/exceptions.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/config_file/exceptions.py b/config_file/exceptions.py
index e1af755..03ef052 100644
--- a/config_file/exceptions.py
+++ b/config_file/exceptions.py
@@ -4,3 +4,16 @@ class ConfigFileError(Exception):
class ParsingError(ConfigFileError):
"""Unable to parse the configuration file."""
+
+
+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.
+ """