db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r531822 - /db/derby/code/trunk/java/shared/org/apache/derby/shared/common/sanity/AssertFailure.java
Date Tue, 24 Apr 2007 08:12:18 GMT
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);
 	}
 }



Mime
View raw message