Keel 2.1RC2

org.apache.avalon.fortress.util
Class FortressCommandFailureHandler

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.fortress.util.FortressCommandFailureHandler
All Implemented Interfaces:
CommandFailureHandler, LogEnabled

public class FortressCommandFailureHandler
extends AbstractLogEnabled
implements CommandFailureHandler

The default CommandFailureHandler used by Fortress to log any failures encountered while executing commands.

Since:
4.1
Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 15:16:26 $
Author:

Field Summary
 
Fields inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
 
Constructor Summary
FortressCommandFailureHandler()
           
 
Method Summary
 boolean handleCommandFailure(Command command, java.lang.Throwable throwable)
          Handle a command failure.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FortressCommandFailureHandler

public FortressCommandFailureHandler()
Method Detail

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.

Specified by:
handleCommandFailure in interface CommandFailureHandler
Parameters:
command - The original Command object that failed
throwable - The throwable that caused the failure
Returns:
true if the CommandManager should cease to process commands.

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.