|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.w3c.mwi.mobileok.basic.TestException
public final class TestException
An exception thrown when an internal, unexpected testing error is encountered.
Such an exception might be thrown if the XML parser is misconfigured, but not if the XML parser can't parse a page because this would merely mean that the page is invalid and that the test should fail (in other words, such errors should be expected and are not internal anyway because they are triggered by external content).
Constructor Summary | |
---|---|
TestException(java.lang.String message)
Constructs a new exception with the specified detail message. |
|
TestException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause. |
|
TestException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause). |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
TestException(java.lang.String message)
The cause is not initialized, and may subsequently be initialized by
a call to Throwable.initCause(Throwable)
.
message
- the detail message. The detail message is saved for later retrieval by the Throwable.getMessage()
method.TestException(java.lang.Throwable cause)
(cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause).
This constructor is useful for exceptions that are little more than wrappers for other throwables.
cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). A null
value is permitted, and indicates that the cause is nonexistent or unknown.TestException(java.lang.String message, java.lang.Throwable cause)
message
- the detail message. The detail message is saved for later retrieval by the Throwable.getMessage()
method.cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). A null
value is permitted, and indicates that the cause is nonexistent or unknown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |