X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-cli%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fcli%2Fcommands%2FCommandInvocationException.java;fp=opendaylight%2Fnetconf%2Fnetconf-cli%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fcli%2Fcommands%2FCommandInvocationException.java;h=0000000000000000000000000000000000000000;hb=23fe9ca678ada6263fec5dd996f4025e4a32fcf5;hp=e38f45f5ad11aac1cacb20c8dbba9ac7bb6f3d47;hpb=071a641d7c12c0e6112d5ce0afe806b54f116ed2;p=controller.git diff --git a/opendaylight/netconf/netconf-cli/src/main/java/org/opendaylight/controller/netconf/cli/commands/CommandInvocationException.java b/opendaylight/netconf/netconf-cli/src/main/java/org/opendaylight/controller/netconf/cli/commands/CommandInvocationException.java deleted file mode 100644 index e38f45f5ad..0000000000 --- a/opendaylight/netconf/netconf-cli/src/main/java/org/opendaylight/controller/netconf/cli/commands/CommandInvocationException.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.controller.netconf.cli.commands; - -import org.opendaylight.yangtools.yang.common.QName; - -public class CommandInvocationException extends Exception { - - public CommandInvocationException(final QName qName, final Throwable cause) { - this("Command " + qName + " invocation failed: " + cause.getMessage(), cause); - } - - protected CommandInvocationException(final String message, final Throwable cause) { - super(message, cause); - } - - public static class CommandTimeoutException extends CommandInvocationException { - - public CommandTimeoutException(final QName qName, final Throwable e) { - super("Command " + qName + " timed out: " + e.getMessage(), e); - } - } -}