Package org.apache.commons.chain.impl
Class ExceptionCommand
java.lang.Object
org.apache.commons.chain.impl.NonDelegatingCommand
org.apache.commons.chain.impl.ExceptionCommand
- Direct Known Subclasses:
ExceptionFilter
Implementation of
Command
that logs its identifier and
and throws an Exception.- Version:
- $Revision$ $Date$
- 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
ConstructorDescriptionConstruct an instance that will log the specified identifier -
Method Summary
Methods inherited from class org.apache.commons.chain.impl.NonDelegatingCommand
execute, log, setId
-
Constructor Details
-
ExceptionCommand
public ExceptionCommand() -
ExceptionCommand
Construct an instance that will log the specified identifier- Parameters:
id
- identifier to log for this Command instance
-
-
Method Details
-
execute
Execution method for this Command- Parameters:
context
-chain
-- Throws:
Exception
- any error
-