eric6/ThirdParty/EditorConfig/editorconfig/exceptions.py

Sun, 14 Apr 2019 15:09:21 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 14 Apr 2019 15:09:21 +0200
changeset 6942
2602857055c5
parent 6099
ThirdParty/EditorConfig/editorconfig/exceptions.py@a7fecbc392d7
child 6996
7d5a103bdb76
permissions
-rw-r--r--

Major restructuring of the source tree to get prepared for a setup.py based installation.

"""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