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

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

public class ExceptionEvent
extends CommandResponseEvent

Generated when an exception is thrown during command execution that should be sent to listeners.

Version:
$Id: ExceptionEvent.java,v 1.3 2004/11/02 23:57:06 asmedes 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
ExceptionEvent(Command command, java.lang.Throwable exception)
          Creates the event for command.
 
Method Summary
 java.lang.Throwable getCause()
          The exception that generated this event.
 Message getEventMessage()
          Returns a SimpleMessage formatted as [ <command-name> ] Started..
 
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

ExceptionEvent

public ExceptionEvent(Command command,
                      java.lang.Throwable 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..

Specified by:
getEventMessage in class CommandResponseEvent
Returns:

getCause

public java.lang.Throwable getCause()
The exception that generated this event.

Returns:
The exception (as a Throwable) that caused this event to occur.


Copyright © 2002-2004 Toolforge. All Rights Reserved.