org.netbeans.modules.nbjunit/1 1.29

org.netbeans.junit
Class AssertionFailedErrorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byjunit.framework.AssertionFailedError
              extended byorg.netbeans.junit.AssertionFailedErrorException
All Implemented Interfaces:
Serializable

public class AssertionFailedErrorException
extends junit.framework.AssertionFailedError

Error containing nested Exception. It describes the failure and holds and print also the original Exception.

See Also:
Serialized Form

Field Summary
protected  Throwable nestedException
          contains Exception that caused AssertionFailedError
 
Constructor Summary
AssertionFailedErrorException(String message, Throwable nestedException)
          Creates new AssertionFailedErrorException
AssertionFailedErrorException(Throwable nestedException)
          Creates new AssertionFailedErrorException
 
Method Summary
 void printStackTrace()
          prints stack trace of assertion error and nested exception into System.err
 void printStackTrace(PrintStream err)
          prints stack trace of assertion error and nested exception
 void printStackTrace(PrintWriter err)
          prints stack trace of assertion error and nested exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nestedException

protected Throwable nestedException
contains Exception that caused AssertionFailedError

Constructor Detail

AssertionFailedErrorException

public AssertionFailedErrorException(Throwable nestedException)
Creates new AssertionFailedErrorException

Parameters:
nestedException - contains Exception that caused AssertionFailedError

AssertionFailedErrorException

public AssertionFailedErrorException(String message,
                                     Throwable nestedException)
Creates new AssertionFailedErrorException

Parameters:
message - The error description menssage.
nestedException - contains Exception that caused AssertionFailedError
Method Detail

printStackTrace

public void printStackTrace()
prints stack trace of assertion error and nested exception into System.err


printStackTrace

public void printStackTrace(PrintWriter err)
prints stack trace of assertion error and nested exception

Parameters:
err - PrintWriter where to print stack trace

printStackTrace

public void printStackTrace(PrintStream err)
prints stack trace of assertion error and nested exception

Parameters:
err - PrintStream where to print stack trace

org.netbeans.modules.nbjunit/1 1.29

Built on May 12 2006.  |  Portions Copyright 1997-2006 Sun Microsystems, Inc. All rights reserved.