summaryrefslogtreecommitdiff
path: root/kafka/common.py
diff options
context:
space:
mode:
authorMark Roberts <wizzat@gmail.com>2014-04-08 01:28:59 -0700
committerMark Roberts <wizzat@gmail.com>2014-04-08 01:28:59 -0700
commitf0def436c6c9499aa384d8a3fe5319e0c8b9d7da (patch)
treeb652b45eb9001e76242c18e2ea84f17d8f44dd3c /kafka/common.py
parentd59cbf62067d5991c92ba388d31814e61cf3f3fa (diff)
downloadkafka-python-f0def436c6c9499aa384d8a3fe5319e0c8b9d7da.tar.gz
Explicit testing of protocol errors. Make tests more explicit, and start working on intermittent failures in test_encode_fetch_request and test_encode_produc_request
Diffstat (limited to 'kafka/common.py')
-rw-r--r--kafka/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kafka/common.py b/kafka/common.py
index 005e6dd..830e34d 100644
--- a/kafka/common.py
+++ b/kafka/common.py
@@ -118,3 +118,7 @@ class ConsumerFetchSizeTooSmall(KafkaError):
class ConsumerNoMoreData(KafkaError):
pass
+
+
+class ProtocolError(KafkaError):
+ pass