org.d_haven.event.command

Interface CommandFailureHandler

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

Method Summary
booleanhandleCommandFailure(Command command, Throwable throwable)
Handle a command failure.

Method Detail

handleCommandFailure

public boolean handleCommandFailure(Command command, 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 failed throwable The throwable that caused the failure

Returns: true if the DefaultCommandManager should cease to process commands.