You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ds...@apache.org on 2003/06/24 03:53:44 UTC
cvs commit: jakarta-tapestry/framework/src/org/apache/tapestry/enhance CodeGenerationException.java
dsolis 2003/06/23 18:53:44
Modified: framework/src/org/apache/tapestry/enhance
CodeGenerationException.java
Log:
Fix bug [ 21002 ] CodeGenerationException uses JDK 1.4 API
Revision Changes Path
1.2 +14 -3 jakarta-tapestry/framework/src/org/apache/tapestry/enhance/CodeGenerationException.java
Index: CodeGenerationException.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/enhance/CodeGenerationException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CodeGenerationException.java 21 Jun 2003 19:47:24 -0000 1.1
+++ CodeGenerationException.java 24 Jun 2003 01:53:44 -0000 1.2
@@ -66,6 +66,8 @@
*/
public class CodeGenerationException extends RuntimeException
{
+ Throwable _cause;
+
public CodeGenerationException()
{
super();
@@ -78,12 +80,21 @@
public CodeGenerationException(String message, Throwable cause)
{
- super(message, cause);
+ super(message);
+ _cause = cause;
}
public CodeGenerationException(Throwable cause)
{
- super(cause);
+ super();
+ _cause = cause;
+ }
+
+ public Throwable getCause()
+ {
+ return _cause;
}
+
+
}