IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.kernel.services
Class RPTEvent

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
RPTEvent()
           
RPTEvent(String message)
           
RPTEvent(String message, Throwable cause)
           
RPTEvent(Throwable cause)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RPTEvent

public RPTEvent()

RPTEvent

public RPTEvent(String message)

RPTEvent

public RPTEvent(Throwable cause)

RPTEvent

public RPTEvent(String message,
                Throwable cause)
Method Detail

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

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.