[docs]class DeprecatedAPI(Exception):
''' Exception thrown when a deprecated API is used. '''
[docs]class MisplacedValidatorError(Exception):
''' Exception thrown when a validator is used with type (e.g., class, perimitive types etc.) '''
[docs]class ForbiddenForkError(Exception):
''' Exception thrown only when a locator try to fork a proxy. '''
[docs]class DuplicateKeyWarning(Warning):
''' Warning thrown when an internal dictionary detects an attempt of re-assignment to the direction by the existed key. '''
[docs]class MultipleInterceptingEventsWarning(Warning):
''' Warning thrown when more than one intercepting event is detected. '''
[docs]class IncompatibleBlockError(Exception):
''' Exception thrown when :meth:`imagination.locator.Locator.load_xml` cannot process the entity block. '''
[docs]class UnknownFileError(Exception):
''' Exception thrown when :meth:`imagination.locator.Locator.load_xml` cannot locate the file on the given path. '''
[docs]class UnknownEntityError(Exception):
''' Exception thrown when :class:`imagination.locator.Locator` constructor receives an unusable entity. '''
[docs]class UnknownProxyError(Exception):
''' Exception thrown when :class:`imagination.helper.assembler.Assembler` could not find the proxy. '''
[docs]class NonCallableError(Exception):
''' Exception thrown when :class:`imagination.action.Action` tries to execute a non-callable reference. '''
[docs]class LockedEntityException(Exception):
'''
Exception thrown when a caller attempts to update any of alterable properties
of an instance of :class:`imagination.entity.Entity` when it is in the locked
state.
'''
[docs]class InstantiationError(RuntimeError):
""" Exception thrown when forking fails. """