ThirdParty/EditorConfig/editorconfig/exceptions.py

changeset 6099
a7fecbc392d7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ThirdParty/EditorConfig/editorconfig/exceptions.py	Thu Feb 01 19:26:11 2018 +0100
@@ -0,0 +1,27 @@
+"""EditorConfig exception classes
+
+Licensed under PSF License (see LICENSE.txt 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"""

eric ide

mercurial