lib
Class StatusException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--lib.StatusException
- All Implemented Interfaces:
- Serializable
- public class StatusException
- extends RuntimeException
StatusException is used to pass a Status object from a test code which is
terminated abnormaly. In many cases this is because of an exception thrown,
but that can also be any other event that hinders the test execution.
- See Also:
- Serialized Form
Field Summary |
protected Throwable |
exceptionThrown
Contains an exception if the StatusException was created with
StatusException(String, Throwable) constructor. |
protected Status |
status
The Status contained in the StatusException. |
exceptionThrown
protected Throwable exceptionThrown
- Contains an exception if the StatusException was created with
StatusException(String, Throwable) constructor.
status
protected Status status
- The Status contained in the StatusException.
StatusException
public StatusException(String message,
Throwable t)
- Constructs a StatusException containing an exception Status.
- Parameters:
message
- the message of the StatusExceptiont
- the exception of the exception Status
StatusException
public StatusException(Status st)
- Creates a StatusException containing a Status.
getThrownException
public Throwable getThrownException()
- Returns:
- an exception, if this represents an exception Status,
false otherwise.
getStatus
public Status getStatus()
- Returns:
- a status contained in the StatusException.