summaryrefslogtreecommitdiff
path: root/kafka/errors.py
diff options
context:
space:
mode:
authorLars Jørgen Solberg <larsjs@met.no>2016-07-25 08:40:38 +0000
committerDana Powers <dana.powers@gmail.com>2016-08-03 11:44:33 -0700
commit6b801a8d2e3ec387c681100df02de49b322ffedd (patch)
treec01b1302a7100118361d6663159f01a46bde6824 /kafka/errors.py
parentc693709aaf9e292c8614b9ab345d3322d4f71caa (diff)
downloadkafka-python-6b801a8d2e3ec387c681100df02de49b322ffedd.tar.gz
implement sasl PLAIN mechanism
Diffstat (limited to 'kafka/errors.py')
-rw-r--r--kafka/errors.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/kafka/errors.py b/kafka/errors.py
index c005bf8..069c9e4 100644
--- a/kafka/errors.py
+++ b/kafka/errors.py
@@ -58,6 +58,14 @@ class CommitFailedError(KafkaError):
pass
+class AuthenticationMethodNotSupported(KafkaError):
+ pass
+
+
+class AuthenticationFailedError(KafkaError):
+ retriable = False
+
+
class BrokerResponseError(KafkaError):
errno = None
message = None
@@ -328,6 +336,18 @@ class InvalidTimestampError(BrokerResponseError):
description = ('The timestamp of the message is out of acceptable range.')
+class UnsupportedSaslMechanismError(BrokerResponseError):
+ errno = 33
+ message = 'UNSUPPORTED_SASL_MECHANISM'
+ description = ('The broker does not support the requested SASL mechanism.')
+
+
+class IllegalSaslStateError(BrokerResponseError):
+ errno = 34
+ message = 'ILLEGAL_SASL_STATE'
+ description = ('Request is not valid given the current SASL state.')
+
+
class KafkaUnavailableError(KafkaError):
pass