com.ibm.rational.test.lt.kernel.services
Class RPTEvent
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibm.rational.test.lt.kernel.services.RPTEvent
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- RPTLoopEvent, RPTStopScheduleEvent, RPTStopTestEvent, RPTStopUserEvent, RPTVPEvent
public class RPTEvent
- extends RuntimeException
- implements Cloneable
RPTEvent is the base class for RPT built-in exceptions.
It provides two attributes that are observed by all RPT default exception catchers.
One is the severity (from TPTP MessageEvent) and indicates the severity that should be assigned
to any testLog message event generated for this exception
The other is a boolean indicating whether or not to include the stack trace in a testLog message event.
- See Also:
- Serialized Form
Method Summary |
RPTEvent |
clone()
|
int |
getSeverity()
|
boolean |
isShowStackTrace()
|
void |
setSeverity(int severity)
Set the severity of the MessageEvent in the testLog reported by the default
catcher for this event. |
void |
setShowStackTrace(boolean show)
Set the boolean for whether or not the stack trace will be included in the
MessageEvent in the testLog reported by the default catcher for this event. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
RPTEvent
public RPTEvent()
RPTEvent
public RPTEvent(String message)
RPTEvent
public RPTEvent(Throwable cause)
RPTEvent
public RPTEvent(String message,
Throwable cause)
getSeverity
public int getSeverity()
setSeverity
public void setSeverity(int severity)
- Set the severity of the MessageEvent in the testLog reported by the default
catcher for this event. The given severity must be one of the severities defined
by the TPTP class MessageEvent. The default severity is MessageEvent.ERROR.
- Parameters:
severity
-
isShowStackTrace
public boolean isShowStackTrace()
setShowStackTrace
public void setShowStackTrace(boolean show)
- Set the boolean for whether or not the stack trace will be included in the
MessageEvent in the testLog reported by the default catcher for this event.
The default is to include the stack trace.
- Parameters:
show
-
clone
public RPTEvent clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
© Copyright IBM Corp. 2012. All rights reserved.