org.apache.excalibur.event.command
Interface CommandFailureHandler
- All Known Implementing Classes:
- NullCommandFailureHandler
- public interface CommandFailureHandler
CommandFailureHandler is used by the CommandManager to handle any exceptions that might
be thrown by a Command. That way the application using the CommandManager can properly
manage what happens when an exception is thrown.
- Version:
- CVS Revision: 1.1 $
- Author:
- Avalon Development Team
handleCommandFailure
public boolean handleCommandFailure(Command command,
java.lang.Throwable throwable)
- Handle a command failure. If a command throws an exception, it has failed. The
CommandManager will call this method so that we can handle the problem effectively.
- Parameters:
command
- The original Command object that failedthrowable
- The throwable that caused the failure
- Returns:
true
if the CommandManager should cease to process commands.
Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.