
public class ExceptionEvent extends EventObject
ExceptionEventSource,
Serialized Formsource| Constructor and Description |
|---|
ExceptionEvent(Object source,
Thread thread,
Throwable throwable)
Creates a new
ExceptionEvent instance taking an exception and
a corresponding thread. |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException()
Getter for property
exception. |
Throwable |
getRootCause()
Gets the root cause of the event's exception by traversing up the chained
exception hierarchy.
|
Thread |
getThread()
Getter for property
thread. |
String |
toString()
Returns a string representation of the object.
|
getSourcepublic ExceptionEvent(Object source, Thread thread, Throwable throwable)
ExceptionEvent instance taking an exception and
a corresponding thread.source - the source of the new event.thread - the thread throwable occured in.throwable - the exception which occured in thread.NullPointerException - if either thread or
throwable is null.public Throwable getException()
exception.public final Throwable getRootCause()
public Thread getThread()
thread.null.public String toString()
toString in class EventObjectCopyright © 2005-2012 jDTAUS. All Rights Reserved.