app/django/dispatch/errors.py
author Todd Larsen <tlarsen@google.com>
Thu, 18 Sep 2008 17:33:20 +0000
changeset 163 1f67538ff619
parent 54 03e267d67478
permissions -rw-r--r--
Add a td.formfielderrorlabel style, to highlight field labels that have errors.

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