aboutsummaryrefslogtreecommitdiffstats
path: root/config_file/exceptions.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-06-20 13:41:35 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-06-20 13:41:35 -0500
commit94fe938075c4edba742db66280c8e02198d79e1e (patch)
tree86979be9a12d6563de34914927be6413535ffb6c /config_file/exceptions.py
parentdocs: Tweak project description (diff)
downloadconfig-file-94fe938075c4edba742db66280c8e02198d79e1e.zip
Add python 3.5 support, ConfigFileError, and more type hints
Also, get_all, set_all, and delete_all in JsonParser have been renamed to just all.
Diffstat (limited to 'config_file/exceptions.py')
-rw-r--r--config_file/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/config_file/exceptions.py b/config_file/exceptions.py
new file mode 100644
index 0000000..cd7e236
--- /dev/null
+++ b/config_file/exceptions.py
@@ -0,0 +1,6 @@
+class ConfigFileError(Exception):
+ """A generic error from the package."""
+
+class ParsingError(ConfigFileError):
+ """Unable to parse the configuration file."""
+ \ No newline at end of file