|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
org.jdtaus.core.lang.ExceptionEvent
public class ExceptionEvent
Event holding an exception.
ExceptionEventSource,
Serialized Form| Constructor Summary | |
|---|---|
ExceptionEvent(Object source,
Thread thread,
Throwable throwable)
Creates a new ExceptionEvent instance taking an exception and
a corresponding thread. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public Throwable getException()
exception.
public final Throwable getRootCause()
public Thread getThread()
thread.
null.public String toString()
toString in class EventObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||