Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
support error code 29. related to #674
Browse files Browse the repository at this point in the history
  • Loading branch information
emmettbutler committed Apr 3, 2017
1 parent ee33c5b commit c73f060
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pykafka/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ class RebalanceInProgress(ProtocolClientError):
ERROR_CODE = 27


class TopicAuthorizationFailed(ProtocolClientError):
"""Returned by the broker when the client is not authorized to access the requested
topic.
"""
ERROR_CODE = 29


class GroupAuthorizationFailed(ProtocolClientError):
"""Returned by the broker when the client is not authorized to access a particular
groupId.
Expand Down Expand Up @@ -235,6 +242,7 @@ class GroupAuthorizationFailed(ProtocolClientError):
UnknownMemberId,
InvalidSessionTimeout,
RebalanceInProgress,
TopicAuthorizationFailed,
GroupAuthorizationFailed)
)

Expand Down

0 comments on commit c73f060

Please sign in to comment.