org.d_haven.event.command

Class NullCommandFailureHandler

public class NullCommandFailureHandler extends Object implements CommandFailureHandler

DefaultCommandFailureHandler is used to do nothing if a command fails.

Version: CVS $ Revision: 1.1 $

Author: Berin Loritsch

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

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. This implementation does nothing and always returns false.

Parameters: command The original Command object that failed throwable The throwable that caused the failure

Returns: false so the CommandManager should continue to process commands.

toString

public String toString()