public class AssertionFailedErrorException
extends junit.framework.AssertionFailedError
Modifier and Type | Field and Description |
---|---|
protected Throwable |
nestedException
contains Exception that caused AssertionFailedError
|
Constructor and Description |
---|
AssertionFailedErrorException(String message,
Throwable nestedException)
Creates new AssertionFailedErrorException
|
AssertionFailedErrorException(Throwable nestedException)
Creates new AssertionFailedErrorException
|
Modifier and Type | Method and Description |
---|---|
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
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
protected Throwable nestedException
public AssertionFailedErrorException(Throwable nestedException)
nestedException
- contains Exception that caused AssertionFailedErrorpublic void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter err)
printStackTrace
in class Throwable
err
- PrintWriter where to print stack tracepublic void printStackTrace(PrintStream err)
printStackTrace
in class Throwable
err
- PrintStream where to print stack trace