You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2007/04/24 10:12:18 UTC
svn commit: r531822 -
/db/derby/code/trunk/java/shared/org/apache/derby/shared/common/sanity/AssertFailure.java
Author: kahatlen
Date: Tue Apr 24 01:12:17 2007
New Revision: 531822
URL: http://svn.apache.org/viewvc?view=rev&rev=531822
Log:
DERBY-2579: AssertFailure class should use JDK's built-in chaining of exceptions
Modified:
db/derby/code/trunk/java/shared/org/apache/derby/shared/common/sanity/AssertFailure.java
Modified: db/derby/code/trunk/java/shared/org/apache/derby/shared/common/sanity/AssertFailure.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/shared/org/apache/derby/shared/common/sanity/AssertFailure.java?view=diff&rev=531822&r1=531821&r2=531822
==============================================================================
--- db/derby/code/trunk/java/shared/org/apache/derby/shared/common/sanity/AssertFailure.java (original)
+++ db/derby/code/trunk/java/shared/org/apache/derby/shared/common/sanity/AssertFailure.java Tue Apr 24 01:12:17 2007
@@ -34,8 +34,6 @@
**/
public class AssertFailure extends RuntimeException
{
- private Throwable nestedException;
-
/**
* This constructor takes the pieces of information
* expected for each error.
@@ -51,8 +49,7 @@
**/
public AssertFailure(String message, Throwable nestedError)
{
- super(message);
- nestedException = nestedError;
+ super(message, nestedError);
}
/**
@@ -61,21 +58,5 @@
public AssertFailure(String message)
{
super(message);
- }
-
- public void printStackTrace() {
- super.printStackTrace();
- if (nestedException != null)
- nestedException.printStackTrace();
- }
- public void printStackTrace(PrintStream s) {
- super.printStackTrace(s);
- if (nestedException != null)
- nestedException.printStackTrace(s);
- }
- public void printStackTrace(PrintWriter s) {
- super.printStackTrace(s);
- if (nestedException != null)
- nestedException.printStackTrace(s);
}
}