app/django/dispatch/errors.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Sun, 21 Sep 2008 08:59:11 +0000
changeset 183 37d98c3cefa5
parent 54 03e267d67478
permissions -rw-r--r--
Small change to unescape function in template_helpers (move replace('&amp;', '&') at the end).

"""Error types for dispatcher mechanism
"""

class DispatcherError(Exception):
    """Base class for all Dispatcher errors"""
class DispatcherKeyError(KeyError, DispatcherError):
    """Error raised when unknown (sender,signal) set specified"""
class DispatcherTypeError(TypeError, DispatcherError):
    """Error raised when inappropriate signal-type specified (None)"""