eric6/ThirdParty/EditorConfig/editorconfig/exceptions.py

Sun, 05 May 2019 16:15:34 +0200

author
Jaime Seuma <jaims.seuma@gmail.com>
date
Sun, 05 May 2019 16:15:34 +0200
changeset 7002
3b51a78773d5
parent 6996
7d5a103bdb76
permissions
-rw-r--r--

Spanish i18n update for eric6 default branch

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

eric ide

mercurial