org.apache.turbine.modules.actions
Class VelocityActionThrowsException

java.lang.Object
  extended by org.apache.turbine.modules.Assembler
      extended by org.apache.turbine.modules.Action
          extended by org.apache.turbine.modules.ActionEvent
              extended by org.apache.turbine.util.velocity.VelocityActionEvent
                  extended by org.apache.turbine.modules.actions.VelocityAction
                      extended by 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.

Author:
Eric Pugh, Peter Courcoux

Field Summary
 
Fields inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
initialized
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
bubbleUpException, BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Fields inherited from class org.apache.turbine.modules.Action
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
 
Constructor Summary
VelocityActionThrowsException()
           
 
Method Summary
 void doCauseexception(PipelineData data, org.apache.velocity.context.Context context)
          This action event also throws an exception.
 void doCauseexception(RunData 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.
 void doPerform(RunData data, org.apache.velocity.context.Context context)
          Default action is throw an exception.
 
Methods inherited from class org.apache.turbine.modules.actions.VelocityAction
doPerform, doPerform, getContext, getContext, initialize, perform, perform, setTemplate, setTemplate
 
Methods inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
executeEvents, executeEvents
 
Methods inherited from class org.apache.turbine.modules.ActionEvent
considerKey, executeEvents, executeEvents, formatString
 
Methods inherited from class org.apache.turbine.modules.Action
getPrefix
 
Methods inherited from class org.apache.turbine.modules.Assembler
getRunData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityActionThrowsException

public VelocityActionThrowsException()
Method Detail

doPerform

public void doPerform(RunData data,
                      org.apache.velocity.context.Context context)
               throws Exception
Default action is throw an exception.

Specified by:
doPerform in class VelocityAction
Parameters:
data - Current RunData information
context - Context to populate
Throws:
Exception - Thrown on error

doPerform

public void doPerform(PipelineData data,
                      org.apache.velocity.context.Context context)
               throws Exception
Default action is throw an exception.

Overrides:
doPerform in class VelocityAction
Parameters:
data - Current PipelineData information
context - Context to populate
Throws:
Exception - Thrown on error

doCauseexception

public void doCauseexception(RunData data,
                             org.apache.velocity.context.Context context)
                      throws Exception
This action event also throws an exception.

Parameters:
data -
context -
Throws:
Exception

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


Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.