org.netbeans.junit
Class AssertionFailedErrorException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Error
              |
              +--junit.framework.AssertionFailedError
                    |
                    +--org.netbeans.junit.AssertionFailedErrorException
All Implemented Interfaces:
java.io.Serializable

public class AssertionFailedErrorException
extends junit.framework.AssertionFailedError

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

Version:
1.0
Author:
Adam Sotona
See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable nestedException
          contains Exception that caused AssertionFailedError
 
Constructor Summary
AssertionFailedErrorException(java.lang.String message, java.lang.Throwable nestedException)
          Creates new AssertionFailedErrorException
AssertionFailedErrorException(java.lang.Throwable nestedException)
          Creates new AssertionFailedErrorException
 
Method Summary
 void printStackTrace()
          prints stack trace of assertion error and nested exception into System.err
 void printStackTrace(java.io.PrintStream err)
          prints stack trace of assertion error and nested exception
 void printStackTrace(java.io.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 java.lang.Throwable nestedException
contains Exception that caused AssertionFailedError

Constructor Detail

AssertionFailedErrorException

public AssertionFailedErrorException(java.lang.Throwable nestedException)
Creates new AssertionFailedErrorException

Parameters:
nestedException - contains Exception that caused AssertionFailedError

AssertionFailedErrorException

public AssertionFailedErrorException(java.lang.String message,
                                     java.lang.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 java.lang.Throwable

printStackTrace

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

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

printStackTrace

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

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