-
Notifications
You must be signed in to change notification settings - Fork 15.1k
MINOR: Move TerseFailure to server-common #21890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| /** | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * 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 | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
|
|
@@ -15,18 +15,25 @@ | |
| * limitations under the License. | ||
| */ | ||
|
|
||
| package kafka.tools | ||
| package org.apache.kafka.server.util; | ||
|
|
||
| import org.apache.kafka.common.KafkaException | ||
| import org.apache.kafka.common.KafkaException; | ||
|
|
||
| /** | ||
| * An exception thrown to indicate that the command has failed, but we don't want to | ||
| * print a stack trace. | ||
| * | ||
| * @param message The message to print out before exiting. A stack trace will not | ||
| * be printed. | ||
| * @param cause The exception's cause | ||
| */ | ||
| class TerseFailure(message: String, cause: Throwable) extends KafkaException(message, cause) { | ||
| def this(message: String) = this(message, null) | ||
| public class TerseFailure extends KafkaException { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since it is used by both
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. However, |
||
| public TerseFailure(String message) { | ||
| super(message); | ||
| } | ||
|
|
||
| /** | ||
| * @param message The message to print out before exiting. A stack trace will not | ||
| * be printed. | ||
| * @param cause The exception's cause | ||
| */ | ||
| public TerseFailure(String message, Throwable cause) { | ||
| super(message, cause); | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would you mind optimizing the import order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, updated