diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-08-03 11:46:56 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-08-03 11:46:56 -0700 |
commit | 709ee3b59aff8ab205f0e09c33f4ec8391664228 (patch) | |
tree | ca5a3e79e002bdb956e4faf73aeec6874ee8d9de /kafka/errors.py | |
parent | c693709aaf9e292c8614b9ab345d3322d4f71caa (diff) | |
parent | 787e8b2ba033cf3d961ca1f5ee345c279222ca8b (diff) | |
download | kafka-python-709ee3b59aff8ab205f0e09c33f4ec8391664228.tar.gz |
Support for PLAIN sasl authentication (PR #779)
Merge squashed branch 'larsjsol-sasl_plain'
Diffstat (limited to 'kafka/errors.py')
-rw-r--r-- | kafka/errors.py | 20 |
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 |