app/django/dispatch/errors.py
author Todd Larsen <tlarsen@google.com>
Wed, 20 Aug 2008 00:04:42 +0000
changeset 86 fd34dd071e5e
parent 54 03e267d67478
permissions -rw-r--r--
Fix up the URLs mapping to soc.views.user.profile.edit() and make the site base template (mostly a mock-up) point to /user/profile instead of the old /usr/linkname/profile from the static mock-up.

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