ThirdParty/EditorConfig/editorconfig/exceptions.py

changeset 6099
a7fecbc392d7
equal deleted inserted replaced
6098:a1d10c6ce103 6099:a7fecbc392d7
1 """EditorConfig exception classes
2
3 Licensed under PSF License (see LICENSE.txt file).
4
5 """
6
7
8 class EditorConfigError(Exception):
9 """Parent class of all exceptions raised by EditorConfig"""
10
11
12 try:
13 from ConfigParser import ParsingError as _ParsingError
14 except:
15 from configparser import ParsingError as _ParsingError
16
17
18 class ParsingError(_ParsingError, EditorConfigError):
19 """Error raised if an EditorConfig file could not be parsed"""
20
21
22 class PathError(ValueError, EditorConfigError):
23 """Error raised if invalid filepath is specified"""
24
25
26 class VersionError(ValueError, EditorConfigError):
27 """Error raised if invalid version number is specified"""

eric ide

mercurial