org.ourgrid.common.event
Class ThrowableEvent

java.lang.Object
  extended by org.ourgrid.common.event.ThrowableEvent
All Implemented Interfaces:
java.io.Serializable, Event, ResponseEvent

public class ThrowableEvent
extends java.lang.Object
implements ResponseEvent

This event will be used to return exceptions that were thrown by event based objects.

See Also:
Serialized Form

Constructor Summary
ThrowableEvent(java.lang.Throwable throwable)
          The default constructor for this event.
 
Method Summary
 java.lang.Object getResponse()
          Gets the response of an Event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowableEvent

public ThrowableEvent(java.lang.Throwable throwable)
The default constructor for this event.

Parameters:
throwable - The object to be thrown
Method Detail

getResponse

public java.lang.Object getResponse()
Description copied from interface: ResponseEvent
Gets the response of an Event.

Specified by:
getResponse in interface ResponseEvent
Returns:
an Object that corresponds to the response of an Event.
See Also:
ResponseEvent.getResponse()