activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/4] activemq-artemis git commit: ARTEMIS-116 Actually use a higher level of the exception to catch more issues.
Date Wed, 17 Jun 2015 02:49:42 GMT
ARTEMIS-116 Actually use a higher level of the exception to catch more issues.


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/56ec4cab
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/56ec4cab
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/56ec4cab

Branch: refs/heads/master
Commit: 56ec4cabab8fb7a4f2fd1c58b8b889c6b7493db8
Parents: 1d0821e
Author: John D. Ament <johndament@apache.org>
Authored: Tue Jun 16 20:31:26 2015 -0400
Committer: John D. Ament <johndament@apache.org>
Committed: Tue Jun 16 20:31:26 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/activemq/artemis/cli/Artemis.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/56ec4cab/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
index c19b37d..39f60be 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/Artemis.java
@@ -20,8 +20,7 @@ import java.io.InputStream;
 import java.io.OutputStream;
 
 import io.airlift.airline.Cli;
-import io.airlift.airline.ParseArgumentsMissingException;
-import io.airlift.airline.ParseArgumentsUnexpectedException;
+import io.airlift.airline.ParseException;
 import org.apache.activemq.artemis.cli.commands.Action;
 import org.apache.activemq.artemis.cli.commands.ActionContext;
 import org.apache.activemq.artemis.cli.commands.Create;
@@ -67,7 +66,7 @@ public class Artemis
       {
          parser.parse(args).execute(ActionContext.system());
       }
-      catch (ParseArgumentsUnexpectedException | ParseArgumentsMissingException e)
+      catch (ParseException e)
       {
          System.err.println(e.getMessage());
          System.out.println();


Mime
View raw message