app/django/dispatch/errors.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Tue, 14 Oct 2008 12:36:55 +0000
changeset 322 6641e941ef1e
parent 54 03e267d67478
permissions -rw-r--r--
Fixed imports sorting based on comments for r751. http://code.google.com/p/soc/source/detail?r=751 Patch by: Pawel Solyga Review by: to-be-reviewed

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