org.apache.commons.chain.impl
Class ExceptionCommand

java.lang.Object
  extended by org.apache.commons.chain.impl.NonDelegatingCommand
      extended by org.apache.commons.chain.impl.ExceptionCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
ExceptionFilter

public class ExceptionCommand
extends NonDelegatingCommand

Implementation of Command that logs its identifier and and throws an Exception.

Version:
$Revision: 480477 $ $Date: 2006-11-29 08:34:52 +0000 (Wed, 29 Nov 2006) $
Author:
Craig R. McClanahan

Field Summary
 
Fields inherited from class org.apache.commons.chain.impl.NonDelegatingCommand
id
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
ExceptionCommand()
           
ExceptionCommand(String id)
           
 
Method Summary
 void execute(Context context, Chain chain)
           
 
Methods inherited from class org.apache.commons.chain.impl.NonDelegatingCommand
execute, log, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionCommand

public ExceptionCommand()

ExceptionCommand

public ExceptionCommand(String id)
Method Detail

execute

public void execute(Context context,
                    Chain chain)
             throws Exception
Throws:
Exception


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.