public class JavaTestError
extends java.lang.Error
Modifier and Type | Field and Description |
---|---|
protected java.lang.Throwable |
original
The original problem.
|
Constructor and Description |
---|
JavaTestError(I18NResourceBundle i18n,
java.lang.String key)
Constructs a JavaTestError object with an I18N string as the message.
|
JavaTestError(I18NResourceBundle i18n,
java.lang.String key,
java.lang.Object arg)
Constructs a JavaTestError object with an I18N string as the message.
|
JavaTestError(I18NResourceBundle i18n,
java.lang.String key,
java.lang.Object[] args)
Constructs a JavaTestError object with an I18N string as the message.
|
JavaTestError(I18NResourceBundle i18n,
java.lang.String key,
java.lang.Object[] args,
java.lang.Throwable original)
Constructs a JavaTestError object with an I18N string as the message and
the error or exception which caused this error to be thrown.
|
JavaTestError(I18NResourceBundle i18n,
java.lang.String key,
java.lang.Object arg,
java.lang.Throwable original)
Constructs a JavaTestError object with an I18N string as the message and
the error or exception which caused this error to be thrown.
|
JavaTestError(I18NResourceBundle i18n,
java.lang.String key,
java.lang.Throwable original)
Constructs a JavaTestError object with an I18N string as the message and
the error or exception which caused this error to be thrown.
|
JavaTestError(java.lang.String s)
Constructs a JavaTestError object with a literal string as the message
text.
|
JavaTestError(java.lang.String s,
java.lang.Throwable original)
Constructs a JavaTestError object with a literal string as the message
text.
|
JavaTestError(java.lang.Throwable original)
Constructs a JavaTestError object to be thrown when an unexpected
exception has been caught.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getOriginalFault()
If available, find out what error or exception caused JT Harness to create this
object and to throw it.
|
void |
printStackTrace() |
void |
printStackTrace(java.io.PrintStream s) |
void |
printStackTrace(java.io.PrintWriter s) |
static void |
unexpectedException(java.lang.Throwable t)
Print out a message when an unexpected exception has been caught.
|
protected java.lang.Throwable original
public JavaTestError(java.lang.String s)
s
- Literal string to use as the message text.public JavaTestError(java.lang.String s, java.lang.Throwable original)
s
- Literal string to use as the message text.original
- The exception which originally caused the problem.public JavaTestError(java.lang.Throwable original)
original
- The exception which originally caused the problem.unexpectedException(java.lang.Throwable)
public JavaTestError(I18NResourceBundle i18n, java.lang.String key)
i18n
- The resource bundle to get the message text from.key
- The key to access the resource bundle.public JavaTestError(I18NResourceBundle i18n, java.lang.String key, java.lang.Object arg)
i18n
- The resource bundle to get the message text from.key
- The key to access the resource bundle.arg
- Item to be substituted into the internationalized string.public JavaTestError(I18NResourceBundle i18n, java.lang.String key, java.lang.Object[] args)
i18n
- The resource bundle to get the message text from.key
- The key to access the resource bundle.args
- Items to be substituted into the internationalized string.public JavaTestError(I18NResourceBundle i18n, java.lang.String key, java.lang.Throwable original)
i18n
- The resource bundle to get the message text from.key
- The key to access the resource bundle.original
- The problem which ultimately caused this error.public JavaTestError(I18NResourceBundle i18n, java.lang.String key, java.lang.Object arg, java.lang.Throwable original)
i18n
- The resource bundle to get the message text from.key
- The key to access the resource bundle.arg
- Item to be substituted into the internationalized string.original
- The problem which ultimately caused this error.public JavaTestError(I18NResourceBundle i18n, java.lang.String key, java.lang.Object[] args, java.lang.Throwable original)
i18n
- The resource bundle to get the message text from.key
- The key to access the resource bundle.args
- Items to be substituted into the internationalized string.original
- The problem which ultimately caused this error.public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
public java.lang.Throwable getOriginalFault()
public static void unexpectedException(java.lang.Throwable t)
t
- The exception that was caught.JavaTestError(Throwable)
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.