public class NotificationResults
extends java.lang.Object
Constructor and Description |
---|
NotificationResults(java.lang.String notificationName,
boolean returnValue,
java.lang.Object errorInfo) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getErrorInfo()
Error information related to a failed execution.
|
java.lang.String |
getNotificationName()
The fully qualifed node name of the notification associated
with the execution.
|
boolean |
getReturnValue()
Returns the return value of the notification's execution.
|
java.lang.String |
getType() |
boolean |
hadError()
This method indicates if the execution failed.
|
void |
setErrorInfo(java.lang.Object errorInfo)
Used to save information related to the cause of a failed execution.
|
void |
setHadError(boolean hadError)
Sets the error status of the execution.
|
java.lang.String |
toString() |
public NotificationResults(java.lang.String notificationName, boolean returnValue, java.lang.Object errorInfo)
public java.lang.Object getErrorInfo()
public java.lang.String getNotificationName()
public boolean getReturnValue()
public java.lang.String getType()
public boolean hadError()
true
indicates the execution was successful and
false
indicates an error occurred.public void setErrorInfo(java.lang.Object errorInfo)
errorInfo
- the object that contains information related to the cause
of an execution failure. In most instances this is an exception.public void setHadError(boolean hadError)
hadError
- true
indicates the execution failed and
false
indicates success.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003 - 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.