eric6/ThirdParty/EditorConfig/editorconfig/exceptions.py

changeset 8258
82b608e352ec
parent 8257
28146736bbfc
child 8259
2bbec88047dd
equal deleted inserted replaced
8257:28146736bbfc 8258:82b608e352ec
1 """EditorConfig exception classes
2
3 Licensed under Simplified BSD License (see LICENSE.BSD 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