Package de.xima.fc.exceptions
Class AbstractAbruptCompletionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.exceptions.AbstractXfcException
de.xima.fc.exceptions.WorkflowProcessingException
de.xima.fc.exceptions.AbstractAbruptCompletionException
- All Implemented Interfaces:
IXfcException
,IBaseCompletionResult
,Serializable
- Direct Known Subclasses:
NodeReturnedException
,NodeThrewException
public abstract class AbstractAbruptCompletionException
extends WorkflowProcessingException
implements IBaseCompletionResult
Indicates that execution of a workflow node ended abruptly.
An abrupt completion always has an associated reason, which is one of the following:
- A return statement
- A throw statement, including exceptions thrown by the workflow runtime engine
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A simple builder for anAbstractAbruptCompletionException
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new exception with the given data for a node that wants to end abruptly by throwing. -
Method Summary
Methods inherited from class de.xima.fc.exceptions.WorkflowProcessingException
getDefaultErrorCode, getDefaultMessageKey
Methods inherited from class de.xima.fc.exceptions.AbstractXfcException
getErrorCode, getExceptionData, getLocalizedMessage, getMessageKey, getMessageParams
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AbstractAbruptCompletionException
Creates a new exception with the given data for a node that wants to end abruptly by throwing.- Parameters:
builder
- Builder with the data to set.- Since:
- 8.1.0
-
-
Method Details
-
getAlwaysValue
- Specified by:
getAlwaysValue
in interfaceIBaseCompletionResult
- Returns:
- The value that is always returned, irrespective of whether the node completed normally or abruptly. Must
conform to the
IExecutionResultDescriptor.getAlwaysValueDescriptor(IValueDescriptorFactory)
IExecutionResultDescriptor#getAlwaysValueDescriptor.
-
getAttachmentValue
- Specified by:
getAttachmentValue
in interfaceIBaseCompletionResult
- Returns:
- The attachment or attachments returned by the node when executed. Must conform to the
IExecutionResultDescriptor.getAttachmentValueDescriptor()
.
-
getFileValue
- Specified by:
getFileValue
in interfaceIBaseCompletionResult
- Returns:
- The file returned by the node when executed. Must conform to the
IExecutionResultDescriptor.getFileValueDescriptor()
.
-
getNode
- Specified by:
getNode
in interfaceIBaseCompletionResult
- Returns:
- The node that created this result. May be
null
when no node is associated with this result.
-