This is an automated email from the ASF dual-hosted git repository. karthikz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push: new b325f85 Add extra info when failed to create new instance of class (#2867) b325f85 is described below commit b325f8572f7b4452a4363f46fb2aff955b5ad58e Author: Ning Wang <nw...@twitter.com> AuthorDate: Thu Apr 19 21:26:01 2018 -0700 Add extra info when failed to create new instance of class (#2867) --- storm-compatibility/src/java/backtype/storm/utils/Utils.java | 2 +- storm-compatibility/src/java/org/apache/storm/utils/Utils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storm-compatibility/src/java/backtype/storm/utils/Utils.java b/storm-compatibility/src/java/backtype/storm/utils/Utils.java index 2eb6a3c..b1d6e98 100644 --- a/storm-compatibility/src/java/backtype/storm/utils/Utils.java +++ b/storm-compatibility/src/java/backtype/storm/utils/Utils.java @@ -38,7 +38,7 @@ public final class Utils { Class<?> c = Class.forName(klass); return c.newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { - throw new RuntimeException(e); + throw new RuntimeException("Failed to create instance for class: " + klass, e); } } diff --git a/storm-compatibility/src/java/org/apache/storm/utils/Utils.java b/storm-compatibility/src/java/org/apache/storm/utils/Utils.java index b97c160..62b4de4 100644 --- a/storm-compatibility/src/java/org/apache/storm/utils/Utils.java +++ b/storm-compatibility/src/java/org/apache/storm/utils/Utils.java @@ -38,7 +38,7 @@ public final class Utils { Class<?> c = Class.forName(klass); return c.newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { - throw new RuntimeException(e); + throw new RuntimeException("Failed to create instance for class: " + klass, e); } } -- To stop receiving notification emails like this one, please contact karth...@apache.org.