donaldp 2002/07/10 19:00:26
Modified: src/main/org/apache/tools/ant BuildException.java
Log:
Add jdk1.4 friendly getCause() method
Revision Changes Path
1.16 +10 -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.16
diff -u -r1.15 -r1.16
--- BuildException.java 30 Apr 2002 14:20:16 -0000 1.15
+++ BuildException.java 11 Jul 2002 02:00:26 -0000 1.16
@@ -166,6 +166,16 @@
}
/**
+ * Returns the nested exception, if any.
+ *
+ * @return the nested exception, or <code>null</code> if no
+ * exception is associated with this one
+ */
+ public Throwable getCause() {
+ return getException();
+ }
+
+ /**
* Returns the location of the error and the error message.
*
* @return the location of the error and the error message
--
To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
|