summaryrefslogtreecommitdiff
path: root/kafka/errors.py
diff options
context:
space:
mode:
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