rougail/src/rougail/error.py

36 lines
695 B
Python
Raw Normal View History

2019-11-23 08:17:35 +01:00
# -*- coding: utf-8 -*-
class ConfigError(Exception):
pass
class FileNotFound(ConfigError):
pass
class TemplateError(ConfigError):
pass
class TemplateDisabled(TemplateError):
"""Template is disabled.
"""
pass
2020-07-20 18:13:53 +02:00
class OperationError(Exception):
2019-11-23 08:17:35 +01:00
"""Type error or value Error for Creole variable's type or values
"""
class SpaceObjShallNotBeUpdated(Exception):
"""Specific behavior in case of the presence or not
of an object in the space object
"""
2020-07-20 18:13:53 +02:00
class DictConsistencyError(Exception):
2019-11-23 08:17:35 +01:00
"""It's not only that the Creole XML is valid against the Creole DTD
it's that it is not consistent.
"""
2020-07-07 18:12:16 +02:00
2020-07-20 18:13:53 +02:00
class LoaderError(Exception):
2020-07-07 18:12:16 +02:00
pass