public class FailureEvent
extends java.util.EventObject
Constructor and Description |
---|
FailureEvent(java.lang.Object source,
java.lang.String reasonDetailed)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFailureInfo()
Get the failure reason
|
<T> T |
getPayloadElement(java.lang.String key)
Get a payload element
|
<T> void |
setPayloadElement(java.lang.String key,
T value)
Set a payload element
|
public FailureEvent(java.lang.Object source, java.lang.String reasonDetailed)
source
- the source KF step generating this eventreasonDetailed
- the reason for the failure (usually the message from
an Exception)public java.lang.String getFailureInfo()
public <T> void setPayloadElement(java.lang.String key, T value)
key
- the key for the elementvalue
- the value of the elementpublic <T> T getPayloadElement(java.lang.String key)
key
- the key of the element to get