brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andreatu...@apache.org
Subject [5/6] git commit: include UndeclaredThrowable as an exception which is not interesting, and whose nested exception should be preferred for the purpose of informing the user of root causes
Date Wed, 17 Sep 2014 13:28:21 GMT
include UndeclaredThrowable as an exception which is not interesting, and whose nested exception
should be preferred for the purpose of informing the user of root causes


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/9829b322
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/9829b322
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/9829b322

Branch: refs/heads/master
Commit: 9829b322ffe9a5f9acb2258fd81d8040e3c914fa
Parents: f6f9549
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Mon Sep 15 09:02:45 2014 +0100
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Mon Sep 15 09:02:45 2014 +0100

----------------------------------------------------------------------
 .../common/src/main/java/brooklyn/util/exceptions/Exceptions.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/9829b322/utils/common/src/main/java/brooklyn/util/exceptions/Exceptions.java
----------------------------------------------------------------------
diff --git a/utils/common/src/main/java/brooklyn/util/exceptions/Exceptions.java b/utils/common/src/main/java/brooklyn/util/exceptions/Exceptions.java
index a233b0c..53fb816 100644
--- a/utils/common/src/main/java/brooklyn/util/exceptions/Exceptions.java
+++ b/utils/common/src/main/java/brooklyn/util/exceptions/Exceptions.java
@@ -23,6 +23,7 @@ import static com.google.common.base.Predicates.instanceOf;
 import static com.google.common.base.Throwables.getCausalChain;
 
 import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.UndeclaredThrowableException;
 import java.util.Collection;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
@@ -38,7 +39,7 @@ import com.google.common.collect.Iterables;
 public class Exceptions {
 
     private static final List<Class<? extends Throwable>> BORING_THROWABLE_SUPERTYPES
= ImmutableList.<Class<? extends Throwable>>of(
-        ExecutionException.class, InvocationTargetException.class, PropagatedRuntimeException.class);
+        ExecutionException.class, InvocationTargetException.class, PropagatedRuntimeException.class,
UndeclaredThrowableException.class);
 
     private static boolean isBoring(Throwable t) {
         for (Class<? extends Throwable> type: BORING_THROWABLE_SUPERTYPES)


Mime
View raw message