Sea 0.4.0

gov.lbl.dsd.sea.event
Class ExceptionEvent

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bygov.lbl.dsd.sea.event.ExceptionEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalEventException

public class ExceptionEvent
extends RuntimeException

A generic runtime exception that can be thrown when a problem occurs within EventHandler.handle(java.lang.Object).

If appropriate, you can enqueue an instance of this class onto a stage.

Version:
$Revision: 1.2 $, $Date: 2004/07/22 18:04:54 $
See Also:
Serialized Form

Constructor Summary
ExceptionEvent(Object causingEvent, Stage source)
          Constructs a new exception.
ExceptionEvent(String message, Throwable cause, Object causingEvent, Stage source)
          Constructs a new exception.
ExceptionEvent(Throwable cause, Object causingEvent, Stage source)
          Constructs a new exception.
 
Method Summary
 Object getCausingEvent()
           
 Stage getSource()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionEvent

public ExceptionEvent(Object causingEvent,
                      Stage source)
Constructs a new exception.

Parameters:
causingEvent - the event that caused the exception.
source - the stage that could not properly handle the causing event.

ExceptionEvent

public ExceptionEvent(Throwable cause,
                      Object causingEvent,
                      Stage source)
Constructs a new exception.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
causingEvent - the event that caused the exception.
source - the stage that could not properly handle the causing event.

ExceptionEvent

public ExceptionEvent(String message,
                      Throwable cause,
                      Object causingEvent,
                      Stage source)
Constructs a new exception.

Parameters:
message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage()method.
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
causingEvent - the event that caused the exception.
source - the stage that could not properly handle the causing event.
Method Detail

getCausingEvent

public Object getCausingEvent()

getSource

public Stage getSource()

toString

public String toString()

Sea 0.4.0