From 6eab76b24dfc831b8c41c445d98175c3276b20a5 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jul 2020 20:28:40 -0500 Subject: Add UnrecognizedFileError and MissingDependencyError --- config_file/exceptions.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'config_file/exceptions.py') 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. + """ -- cgit v1.2.3