|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.anthonyeden.lib.event.ErrorEvent
Event which occurs whenever there is an error. This is thrown by classes which execute asynchronously.
Field Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
ErrorEvent(java.lang.Object source,
java.lang.String message)
Construct an ErrorEvent from the given source object with the given message. |
|
ErrorEvent(java.lang.Object source,
java.lang.String message,
java.lang.Throwable throwable)
Construct an ErrorEvent from the given source object with the given nested error and the given message. |
|
ErrorEvent(java.lang.Object source,
java.lang.Throwable throwable)
Construct an ErrorEvent from the given source object with the given nested error. |
Method Summary | |
java.lang.Throwable |
getError()
Return the error object. |
java.lang.String |
getMessage()
Get the message. |
java.lang.Throwable |
getThrowable()
Deprecated. Use getError() instead |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ErrorEvent(java.lang.Object source, java.lang.String message)
source
- The source objectmessage
- The message Stringpublic ErrorEvent(java.lang.Object source, java.lang.Throwable throwable)
source
- The source objectthrowable
- The nested errorpublic ErrorEvent(java.lang.Object source, java.lang.String message, java.lang.Throwable throwable)
source
- The source objectmessage
- The messagethrowable
- The nested errorMethod Detail |
public java.lang.String getMessage()
public java.lang.Throwable getError()
public java.lang.Throwable getThrowable()
getError()
instead
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |