diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-19 20:28:40 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-19 20:28:40 -0500 |
| commit | 6eab76b24dfc831b8c41c445d98175c3276b20a5 (patch) | |
| tree | 21c025003f4ca3e02e6b67a1c09ea7ab983fa7c9 /config_file/exceptions.py | |
| parent | Add napoleon to transition to Google docstring format (diff) | |
| download | config-file-6eab76b24dfc831b8c41c445d98175c3276b20a5.zip | |
Add UnrecognizedFileError and MissingDependencyError
Diffstat (limited to 'config_file/exceptions.py')
| -rw-r--r-- | config_file/exceptions.py | 13 |
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. + """ |