Source code for catatom2osm.exceptions

"""Exceptions definitions."""


[docs]class CatException(Exception): """Base class for application exceptions.""" def __init__(self, message=None): super(CatException, self).__init__(message)
[docs]class CatValueError(CatException): """Value error exception.""" def __init__(self, message=None): super(CatValueError, self).__init__(message)
[docs]class CatIOError(CatException): """Input/output error exception.""" def __init__(self, message=None): super(CatIOError, self).__init__(message)
[docs]class CatConfigError(CatException): """Can't read config.""" def __init__(self, message=None): super(CatConfigError, self).__init__(message)