Author: bpapez
Date: Wed Aug 22 14:13:26 2007
New Revision: 18224

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18224&repname=
=3Djahia
Log:
use nested exception from the Throwable class

Modified:
    trunk/core/src/java/org/jahia/exceptions/JahiaException.java

Modified: trunk/core/src/java/org/jahia/exceptions/JahiaException.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/core/src/java/o=
rg/jahia/exceptions/JahiaException.java&rev=3D18224&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/core/src/java/org/jahia/exceptions/JahiaException.java (original)
+++ trunk/core/src/java/org/jahia/exceptions/JahiaException.java Wed Aug 22=
 14:13:26 2007
@@ -101,8 +101,6 @@
     protected String  mJahiaErrorMsg;
     protected int     mErrorCode;
     protected int     mErrorSeverity;
-    protected Throwable mRootCauseException;
-
 =

 =

     //--------------------------------------------------------------------=
-----
@@ -140,13 +138,12 @@
     {
         super ("User message=3D" + userErrorMsg +
                 ", System message=3D" + jahiaErrorMsg +
-                ", root cause:" + ((t =3D=3D null) ? "null" : t.getMessage=
()));
+                ", root cause:" + ((t =3D=3D null) ? "null" : t.getMessage=
()), t);
 =

         mUserErrorMsg   =3D userErrorMsg;
         mJahiaErrorMsg  =3D jahiaErrorMsg;
         mErrorCode      =3D errorCode;
         mErrorSeverity  =3D errorSeverity;
-        mRootCauseException =3D t;
 =

     }
 =

@@ -209,7 +206,7 @@
      * didn't need to catch).
      */
     public final Throwable getRootCause() {
-        return mRootCauseException;
+        return getCause();
     }
 =

     // the following methods exists so that we always print out details

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to