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

Commit

Permalink
add InvalidTopic exception. fixes #846
Browse files Browse the repository at this point in the history
  • Loading branch information
emmettbutler committed Aug 15, 2018
1 parent d8ed3dc commit f952587
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pykafka/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ class NotCoordinatorForGroup(ProtocolClientError):
ERROR_CODE = 16


class InvalidTopic(ProtocolClientError):
"""For a request which attempts to access an invalid topic (e.g. one which has
an illegal name), or if an attempt is made to write to an internal topic
(such as the consumer offsets topic).
"""
ERROR_CODE = 17


class IllegalGeneration(ProtocolClientError):
"""Returned from group membership requests (such as heartbeats) when the generation
id provided in the request is not the current generation
Expand Down Expand Up @@ -261,6 +269,7 @@ class GroupAuthorizationFailed(ProtocolClientError):
GroupLoadInProgress,
GroupCoordinatorNotAvailable,
NotCoordinatorForGroup,
InvalidTopic,
IllegalGeneration,
InconsistentGroupProtocol,
UnknownMemberId,
Expand Down

0 comments on commit f952587

Please sign in to comment.