From c0920595f9dfaecce650af5e1039a059f66c28d4 Mon Sep 17 00:00:00 2001 From: Ismael Juma Date: Sun, 26 Apr 2015 20:07:40 +0100 Subject: [PATCH] Restore accidentally deleted ConsumerRebalanceFailedException Unclear how this happened, it was a rename in the patch but ended up as a delete in the merged commit. --- .../common/ConsumerRebalanceFailedException.scala | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 core/src/main/scala/kafka/common/ConsumerRebalanceFailedException.scala diff --git a/core/src/main/scala/kafka/common/ConsumerRebalanceFailedException.scala b/core/src/main/scala/kafka/common/ConsumerRebalanceFailedException.scala new file mode 100644 index 0000000..2f4c2cf --- /dev/null +++ b/core/src/main/scala/kafka/common/ConsumerRebalanceFailedException.scala @@ -0,0 +1,26 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package kafka.common + +/** + * Thrown when a request is made for broker but no brokers with that topic + * exist. + */ +class ConsumerRebalanceFailedException(message: String) extends RuntimeException(message) { + def this() = this(null) +} -- 1.9.3 (Apple Git-50)