summaryrefslogtreecommitdiff
path: root/django/dispatch/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/dispatch/errors.py')
-rw-r--r--django/dispatch/errors.py10
1 files changed, 10 insertions, 0 deletions
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)"""
+