From f69cf70ed813a8cd7e1f963a14ae39103e8d5265 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 2 May 2006 01:31:56 +0000 Subject: MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/dispatch/errors.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 django/dispatch/errors.py (limited to 'django/dispatch/errors.py') diff --git a/django/dispatch/errors.py b/django/dispatch/errors.py new file mode 100644 index 0000000000..a2eb32ed75 --- /dev/null +++ b/django/dispatch/errors.py @@ -0,0 +1,10 @@ +"""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)""" + -- cgit v1.3