Class VelocityActionThrowsException
- java.lang.Object
-
- org.apache.turbine.modules.ActionEvent
-
- org.apache.turbine.util.velocity.VelocityActionEvent
-
- org.apache.turbine.modules.actions.VelocityAction
-
- org.apache.turbine.modules.actions.VelocityActionThrowsException
-
public class VelocityActionThrowsException extends VelocityAction
This action is used in testing the ActionLoader for Velocity templates. Verifies that exceptions are properly bubbled out.- Since:
- October 11, 2002
- Author:
- Eric Pugh, Peter Courcoux
-
-
Field Summary
-
Fields inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
initialized, velocity
-
Fields inherited from class org.apache.turbine.modules.ActionEvent
bubbleUpException, BUTTON, BUTTON_LENGTH, DEFAULT_METHOD, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
-
Fields inherited from interface org.apache.turbine.modules.Action
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
-
Constructor Summary
Constructors Constructor Description VelocityActionThrowsException()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doCauseexception(PipelineData data, org.apache.velocity.context.Context context)
This action event also throws an exception.void
doPerform(PipelineData data, org.apache.velocity.context.Context context)
Default action is throw an exception.-
Methods inherited from class org.apache.turbine.modules.actions.VelocityAction
initialize, perform, setTemplate
-
Methods inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
doPerform
-
Methods inherited from class org.apache.turbine.modules.ActionEvent
considerKey, executeEvents, formatString, getMethod
-
-
-
-
Constructor Detail
-
VelocityActionThrowsException
public VelocityActionThrowsException()
-
-
Method Detail
-
doPerform
public void doPerform(PipelineData data, org.apache.velocity.context.Context context) throws Exception
Default action is throw an exception.- Specified by:
doPerform
in classVelocityAction
- Parameters:
data
- Current PipelineData informationcontext
- Context to populate- Throws:
Exception
- Thrown on error
-
doCauseexception
public void doCauseexception(PipelineData data, org.apache.velocity.context.Context context) throws Exception
This action event also throws an exception.- Parameters:
data
-context
-- Throws:
Exception
-
-