summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/editorconfig/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'venv/lib/python3.11/site-packages/editorconfig/exceptions.py')
-rw-r--r--venv/lib/python3.11/site-packages/editorconfig/exceptions.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/editorconfig/exceptions.py b/venv/lib/python3.11/site-packages/editorconfig/exceptions.py
new file mode 100644
index 0000000..c25f681
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/editorconfig/exceptions.py
@@ -0,0 +1,27 @@
+"""EditorConfig exception classes
+
+Licensed under Simplified BSD License (see LICENSE.BSD file).
+
+"""
+
+
+class EditorConfigError(Exception):
+ """Parent class of all exceptions raised by EditorConfig"""
+
+
+try:
+ from ConfigParser import ParsingError as _ParsingError
+except:
+ from configparser import ParsingError as _ParsingError
+
+
+class ParsingError(_ParsingError, EditorConfigError):
+ """Error raised if an EditorConfig file could not be parsed"""
+
+
+class PathError(ValueError, EditorConfigError):
+ """Error raised if invalid filepath is specified"""
+
+
+class VersionError(ValueError, EditorConfigError):
+ """Error raised if invalid version number is specified"""