kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nehanarkh...@apache.org
Subject git commit: Missing file from KAFKA-828
Date Thu, 28 Mar 2013 16:45:58 GMT
Updated Branches:
  refs/heads/0.8 2fe3f9fef -> be3ce1472


Missing file from KAFKA-828


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/be3ce147
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/be3ce147
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/be3ce147

Branch: refs/heads/0.8
Commit: be3ce14721a97df8331331b024ac602dcf66abe3
Parents: 2fe3f9f
Author: Neha Narkhede <neha.narkhede@gmail.com>
Authored: Thu Mar 28 09:45:52 2013 -0700
Committer: Neha Narkhede <neha.narkhede@gmail.com>
Committed: Thu Mar 28 09:45:52 2013 -0700

----------------------------------------------------------------------
 .../common/LeaderElectionNotNeededException.scala  |   27 +++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/be3ce147/core/src/main/scala/kafka/common/LeaderElectionNotNeededException.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/kafka/common/LeaderElectionNotNeededException.scala b/core/src/main/scala/kafka/common/LeaderElectionNotNeededException.scala
new file mode 100644
index 0000000..ca89d25
--- /dev/null
+++ b/core/src/main/scala/kafka/common/LeaderElectionNotNeededException.scala
@@ -0,0 +1,27 @@
+/**
+ * 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
+
+/**
+ * This exception is thrown when new leader election is not necessary.
+ */
+class LeaderElectionNotNeededException(message: String, cause: Throwable) extends RuntimeException(message,
cause) {
+  def this(message: String) = this(message, null)
+  def this() = this(null, null)
+}
+
+


Mime
View raw message