You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2016/05/06 22:22:58 UTC

svn commit: r1742665 - /uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/UIMAException.java

Author: schor
Date: Fri May  6 22:22:58 2016
New Revision: 1742665

URL: http://svn.apache.org/viewvc?rev=1742665&view=rev
Log:
[UIMA-4670] capture cause if present

Modified:
    uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/UIMAException.java

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/UIMAException.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/UIMAException.java?rev=1742665&r1=1742664&r2=1742665&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/UIMAException.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/UIMAException.java Fri May  6 22:22:58 2016
@@ -88,6 +88,7 @@ public class UIMAException extends Excep
    */
   public UIMAException(Throwable aCause) {
     super(aCause);
+    mCause = aCause;
     if (mMessageKey == null && (aCause instanceof I18nExceptionI)) {
       I18nExceptionI cause = (I18nExceptionI)aCause;
       mMessageKey = cause.getMessageKey();
@@ -131,7 +132,7 @@ public class UIMAException extends Excep
    */
   public UIMAException(String aResourceBundleName, String aMessageKey, Object[] aArguments,
           Throwable aCause) {
-    super();
+    super(aCause);
     this.mResourceBundleName = aResourceBundleName;
     this.mMessageKey = aMessageKey;
     this.mArguments = aArguments;