donaldp 2002/07/18 01:50:06
Modified: src/main/org/apache/tools/ant Tag: ANT_15_BRANCH
BuildException.java
Log:
Add a getCause() method to be compatible with JDK1.4 approach of containing
exceptions.
Revision Changes Path
No revision
No revision
1.15.2.1 +9 -0
jakarta-ant/src/main/org/apache/tools/ant/BuildException.java
Index: BuildException.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/BuildException.java,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -r1.15 -r1.15.2.1
--- BuildException.java 30 Apr 2002 14:20:16 -0000 1.15
+++ BuildException.java 18 Jul 2002 08:50:05 -0000 1.15.2.1
@@ -161,6 +161,15 @@
* @return the nested exception, or <code>null</code> if no
* exception is associated with this one
*/
+ public Throwable getCause() {
+ return cause;
+ }
+ /**
+ * Returns the nested exception, if any.
+ *
+ * @return the nested exception, or <code>null</code> if no
+ * exception is associated with this one
+ */
public Throwable getException() {
return cause;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>