diff options
author | Swen Wenzel <5111028+swenzel@users.noreply.github.com> | 2020-09-17 18:17:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 09:17:35 -0700 |
commit | 16a0b3155fdeebe80295fcfb0f32d75af74dcb1a (patch) | |
tree | df9b10de0ee8f9b40f28a74276182c096e7bbabf /kafka/errors.py | |
parent | e485a6ee2a1f05f2333e22b0fbdbafb12badaf3f (diff) | |
download | kafka-python-16a0b3155fdeebe80295fcfb0f32d75af74dcb1a.tar.gz |
Feature: delete consumergroups (#2040)
* Add consumergroup related errors
* Add DeleteGroups to protocol.admin
* Implement delete_groups feature on KafkaAdminClient
Diffstat (limited to 'kafka/errors.py')
-rw-r--r-- | kafka/errors.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kafka/errors.py b/kafka/errors.py index 2c1df82..b33cf51 100644 --- a/kafka/errors.py +++ b/kafka/errors.py @@ -449,6 +449,18 @@ class SecurityDisabledError(BrokerResponseError): description = 'Security features are disabled.' +class NonEmptyGroupError(BrokerResponseError): + errno = 68 + message = 'NON_EMPTY_GROUP' + description = 'The group is not empty.' + + +class GroupIdNotFoundError(BrokerResponseError): + errno = 69 + message = 'GROUP_ID_NOT_FOUND' + description = 'The group id does not exist.' + + class KafkaUnavailableError(KafkaError): pass |