summaryrefslogtreecommitdiff
path: root/kafka/common.py
diff options
context:
space:
mode:
authorDavid Arthur <mumrah@gmail.com>2013-09-24 21:18:55 -0400
committerDavid Arthur <mumrah@gmail.com>2013-09-24 21:20:00 -0400
commitc0d2cac66940bf477c008e65c9d2bbcd79f030a0 (patch)
treeee5dc075a7d9ec86633bf4e0076a522e70da0ab4 /kafka/common.py
parent9af7b817c17a8d8c08e60607f117c8ac46668eda (diff)
downloadkafka-python-c0d2cac66940bf477c008e65c9d2bbcd79f030a0.tar.gz
Fix #44 Add missing exception classv0.8.0
Also move the exceptions to common instead of util
Diffstat (limited to 'kafka/common.py')
-rw-r--r--kafka/common.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/kafka/common.py b/kafka/common.py
index 9aab8fc..0a1d314 100644
--- a/kafka/common.py
+++ b/kafka/common.py
@@ -64,3 +64,19 @@ class ErrorMapping(object):
MESSAGE_SIZE_TO_LARGE = 10
STALE_CONTROLLER_EPOCH = 11
OFFSET_METADATA_TOO_LARGE = 12
+
+#################
+# Exceptions #
+#################
+
+class BufferUnderflowError(Exception):
+ pass
+
+class ChecksumError(Exception):
+ pass
+
+class ConsumerFetchSizeTooSmall(Exception):
+ pass
+
+class ConsumerNoMoreData(Exception):
+ pass