Skip to content

Commit 9994566

Browse files
authored
Merge pull request #488 from zendesk/dasch/change-error-names
Rename exceptions
2 parents c882aa9 + 47d0c65 commit 9994566

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/kafka.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ class InvalidCommitOffsetSize < ProtocolError
147147
end
148148

149149
# 29
150-
class TopicAuthorizationCode < ProtocolError
150+
class TopicAuthorizationFailed < ProtocolError
151151
end
152152

153153
# 30
154-
class GroupAuthorizationCode < ProtocolError
154+
class GroupAuthorizationFailed < ProtocolError
155155
end
156156

157157
# 31
158-
class ClusterAuthorizationCode < ProtocolError
158+
class ClusterAuthorizationFailed < ProtocolError
159159
end
160160

161161
# 32

lib/kafka/protocol.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ module Protocol
7171
26 => InvalidSessionTimeout,
7272
27 => RebalanceInProgress,
7373
28 => InvalidCommitOffsetSize,
74-
29 => TopicAuthorizationCode,
75-
30 => GroupAuthorizationCode,
76-
31 => ClusterAuthorizationCode,
74+
29 => TopicAuthorizationFailed,
75+
30 => GroupAuthorizationFailed,
76+
31 => ClusterAuthorizationFailed,
7777
32 => InvalidTimestamp,
7878
33 => UnsupportedSaslMechanism,
7979
34 => InvalidSaslState,

0 commit comments

Comments
 (0)