Skip to content
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

ZOOKEEPER-3760: remove a useless throwing CliException #1286

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ protected void connectToZK(String newHost) throws InterruptedException, IOExcept
zk = new ZooKeeperAdmin(host, Integer.parseInt(cl.getOption("timeout")), new MyWatcher(), readOnly);
}

public static void main(String[] args) throws CliException, IOException, InterruptedException {
public static void main(String[] args) throws IOException, InterruptedException {
ZooKeeperMain main = new ZooKeeperMain(args);
main.run();
}
Expand All @@ -304,7 +304,7 @@ public ZooKeeperMain(ZooKeeper zk) {
this.zk = zk;
}

void run() throws CliException, IOException, InterruptedException {
void run() throws IOException, InterruptedException {
if (cl.getCommand() == null) {
System.out.println("Welcome to ZooKeeper!");

Expand Down Expand Up @@ -353,7 +353,7 @@ void run() throws CliException, IOException, InterruptedException {
ServiceUtils.requestSystemExit(exitCode);
}

public void executeLine(String line) throws CliException, InterruptedException, IOException {
public void executeLine(String line) throws InterruptedException, IOException {
if (!line.equals("")) {
cl.parseCommand(line);
addToHistory(commandCount, line);
Expand All @@ -362,7 +362,7 @@ public void executeLine(String line) throws CliException, InterruptedException,
}
}

protected boolean processCmd(MyCommandOptions co) throws CliException, IOException, InterruptedException {
protected boolean processCmd(MyCommandOptions co) throws IOException, InterruptedException {
boolean watch = false;
try {
watch = processZKCmd(co);
Expand Down