站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

AssertionFailedErrorException (NB JUnit) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.nbjunit/1 1.41

org.netbeans.junit
Class AssertionFailedErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by junit.framework.AssertionFailedError
              extended by org.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

Overrides:
printStackTrace in class Throwable

printStackTrace

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

Overrides:
printStackTrace in class Throwable
Parameters:
err - PrintWriter where to print stack trace

printStackTrace

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

Overrides:
printStackTrace in class Throwable
Parameters:
err - PrintStream where to print stack trace

org.netbeans.modules.nbjunit/1 1.41

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