"""EditorConfig exception classes

Licensed under PSF License (see LICENSE.txt file).

"""

from ConfigParser import ParsingError as _ParsingError


class ParsingError(_ParsingError):
    """Error raised if an EditorConfig file could not be parsed"""


class PathError(ValueError):
    """Error raised if invalid filepath is specified"""


class VersionError(ValueError):
    """Error raised if invalid version number is specified"""

"""EditorConfig exception classes

Licensed under PSF License (see LICENSE.txt file).

"""


class EditorConfigError(Exception):
    pass


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

Add superclass for all EditorConfig exceptions