Class WorkflowException
-
- All Implemented Interfaces:
java.io.Serializable
public class WorkflowException
This exception indicates that something went wrong in workflow script.
-
-
Constructor Summary
Constructors Constructor Description WorkflowException(java.lang.String message)
WorkflowException(java.lang.String message, java.lang.Throwable cause)
WorkflowException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTitleMessage()
Retrieves the title of the exception message.java.lang.String
getUserMessage()
Retrieves the user message.void
setTitleMessage(java.lang.String titleMessage)
Sets the title of the exception.void
setUserMessage(java.lang.String userMessage)
Sets the exception message.
-
-
-
Method Detail
-
getTitleMessage
public java.lang.String getTitleMessage()
Retrieves the title of the exception message.- Returns:
- Message title, null if not present.
-
setTitleMessage
public void setTitleMessage(java.lang.String titleMessage)
Sets the title of the exception. This title will be displayed to the user. If it is not set, the default title will be displayed.- Parameters:
titleMessage
- the title of the message displayed to the user.
-
getUserMessage
public java.lang.String getUserMessage()
Retrieves the user message.- Returns:
- User message, null if not present.
-
setUserMessage
public void setUserMessage(java.lang.String userMessage)
Sets the exception message. This message will be displayed to the user. If it is not set, a message resulting from this exception will be displayed, which will be the constructor's message, the cause or the default message of this exception.- Parameters:
userMessage
- the message that will be displayed to the user.
-
-