nl.toolforge.karma.core.cmd.event
Class CommandFailedEvent

java.lang.Object
  extended bynl.toolforge.karma.core.cmd.event.CommandResponseEvent
      extended bynl.toolforge.karma.core.cmd.event.ExceptionEvent
          extended bynl.toolforge.karma.core.cmd.event.CommandFailedEvent
All Implemented Interfaces:
Event

public final class CommandFailedEvent
extends ExceptionEvent

Generated when the command execution failed with a CommandException. This event is - by default - generated when the CommandContext.execute(Command)-method caught a CommandException.

Version:
$Id: CommandFailedEvent.java,v 1.2 2004/10/26 22:47:57 hippe Exp $
Author:
D.A. Smedes

Field Summary
 
Fields inherited from interface nl.toolforge.karma.core.cmd.event.Event
LEVEL_DEBUG, LEVEL_INFO, LEVEL_VERBOSE
 
Constructor Summary
CommandFailedEvent(Command command, CommandException exception)
          Creates the event for command.
 
Method Summary
 Message getEventMessage()
          Returns a SimpleMessage formatted as [ <command-name> ] Started..
 
Methods inherited from class nl.toolforge.karma.core.cmd.event.ExceptionEvent
getCause
 
Methods inherited from class nl.toolforge.karma.core.cmd.event.CommandResponseEvent
getCommand, getPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandFailedEvent

public CommandFailedEvent(Command command,
                          CommandException exception)
Creates the event for command.

Parameters:
command - The command that has started.
Method Detail

getEventMessage

public Message getEventMessage()
Returns a SimpleMessage formatted as [ <command-name> ] Started..

Overrides:
getEventMessage in class ExceptionEvent


Copyright © 2002-2004 Toolforge. All Rights Reserved.