org.hopto.pentaj.jexin.stacktrace
Class StackFrameTemplate

java.lang.Object
  extended by org.hopto.pentaj.jexin.stacktrace.StackFrameTemplate
All Implemented Interfaces:
java.io.Serializable

public class StackFrameTemplate
extends java.lang.Object
implements java.io.Serializable

Used to wrap the StackFrames in a StackFrameTemplate to support StackFrame matching and allow configuration of errors to inject.

See Also:
Serialized Form

Constructor Summary
StackFrameTemplate(StackFrame stackFrame)
           
 
Method Summary
 InjectableException getExceptionToInject()
           
 StackFrame getStackFrame()
           
 void setExceptionToInject(InjectableException exceptionToInject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackFrameTemplate

public StackFrameTemplate(StackFrame stackFrame)
Method Detail

getStackFrame

public StackFrame getStackFrame()
Returns:
the stackFrame

getExceptionToInject

public InjectableException getExceptionToInject()
Returns:
The exception to be injected when an execution matches this frame. Null allows the method to be called normally.

setExceptionToInject

public void setExceptionToInject(InjectableException exceptionToInject)
Parameters:
exceptionToInject - The exception to be injected before the method is called when an execution matches this frame. Null allows the method to be called normally.