org.d_haven.event.command
Interface CommandFailureHandler
- All Known Implementing Classes:
- DefaultCommandFailureHandler, NullCommandFailureHandler
public interface CommandFailureHandler
CommandFailureHandler is used by the DefaultCommandManager to handle
any exceptions that might be thrown by a Command. That way the
application using the DefaultCommandManager can properly manage what
happens when an exception is thrown.
- Version:
- CVS Revision: 1.1 $
- Author:
- Berin Loritsch
handleCommandFailure
boolean handleCommandFailure(Command command,
java.lang.Throwable throwable)
- Handle a command failure. If a command throws an exception, it
has failed. The DefaultCommandManager 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 DefaultCommandManager should
cease to process commands.