Hi All,

Simple patch to JXPathException - guarantees better stacktraces under jdk 1.4, reduces developer's headaches (what is this InvocationTargetException???), does not harm anyone else.

Please apply,

Thanks,
Vadim
Index: src/java/org/apache/commons/jxpath/JXPathException.java
===================================================================
--- src/java/org/apache/commons/jxpath/JXPathException.java     (revision 
233370)
+++ src/java/org/apache/commons/jxpath/JXPathException.java     (working copy)
@@ -116,4 +116,14 @@
     public Throwable getException() {
         return exception;
     }
+
+    /**
+     * Return the actual exception (if any) that caused this exception to
+     * be raised.
+     *
+     * @return The encapsulated exception, or null if there is none.
+     */
+    public Throwable getCause() {
+        return exception;
+    }
 }
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to