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

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

Modified:
    branches/JAHIA-4-1-BRANCH/src/java/org/jahia/exceptions/JahiaException.=
java

Modified: branches/JAHIA-4-1-BRANCH/src/java/org/jahia/exceptions/JahiaExce=
ption.java
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-4-1-BR=
ANCH/src/java/org/jahia/exceptions/JahiaException.java&rev=3D18223&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
--- branches/JAHIA-4-1-BRANCH/src/java/org/jahia/exceptions/JahiaException.=
java (original)
+++ branches/JAHIA-4-1-BRANCH/src/java/org/jahia/exceptions/JahiaException.=
java Wed Aug 22 14:13:14 2007
@@ -125,9 +125,6 @@
     protected String  mJahiaErrorMsg;
     protected int     mErrorCode;
     protected int     mErrorSeverity;
-    protected Throwable mRootCauseException;
-
-
 =

     //--------------------------------------------------------------------=
-----
     /**
@@ -161,13 +158,12 @@
                             int     errorSeverity,
                             Throwable t)
     {
-        super (userErrorMsg + ", " + jahiaErrorMsg + ", root cause:" + ((t=
 =3D=3D null) ? "null" : t.getMessage()));
+        super (userErrorMsg + ", " + jahiaErrorMsg + ", 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;
 =

     }
 =

@@ -230,7 +226,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