|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
com.sun.javatest.JavaTestError
public class JavaTestError
Special error class to be used for errors which may pop out of JT Harness and be seen by the user.
Field Summary | |
---|---|
protected java.lang.Throwable |
original
The original problem. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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 |
---|
protected java.lang.Throwable original
Constructor Detail |
---|
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.Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |