Class NodeReturnedException
- All Implemented Interfaces:
de.xima.cmn.i18n.ILocalizedMessageProvider, IXfcException, IBaseCompletionResult, IReturningCompletionResult, ISuccessResultData, Serializable
public final class NodeReturnedException
extends AbstractSuccessAbruptCompletionException
implements IReturningCompletionResult
Used by a node to indicate that the node completed abruptly by issuing a return statement.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA simple builder for configuring aNodeReturnedException. -
Constructor Summary
ConstructorsConstructorDescriptionNodeReturnedException(WorkflowNode node, Object alwaysValue, Object successValue, IWorkflowFileValue fileValue, List<NodeSoftErrorException> softErrors, String message) Deprecated.NodeReturnedException(WorkflowNode node, Object alwaysValue, Object successValue, IWorkflowFileValue fileValue, List<NodeSoftErrorException> softErrors, String message, Throwable cause) Deprecated.NodeReturnedException(WorkflowNode node, Object alwaysValue, Object successValue, IWorkflowFileValue fileValue, List<NodeSoftErrorException> softErrors, Throwable cause) Deprecated. -
Method Summary
Methods inherited from class AbstractSuccessAbruptCompletionException
getSoftErrors, getSuccessValueMethods inherited from class AbstractAbruptCompletionException
getAlwaysValue, getAttachmentValue, getFileValue, getNodeMethods inherited from class WorkflowProcessingException
getDefaultErrorCode, getDefaultMessageKeyMethods inherited from class AbstractXfcException
getErrorCode, getExceptionData, getLocalizedMessage, getMessageKey, getMessageParamsMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IBaseCompletionResult
getAlwaysValue, getAttachmentValue, getFileValue, getNodeMethods inherited from interface ISuccessResultData
getSoftErrors, getSuccessValue
-
Constructor Details
-
NodeReturnedException
@Deprecated public NodeReturnedException(WorkflowNode node, Object alwaysValue, Object successValue, IWorkflowFileValue fileValue, List<NodeSoftErrorException> softErrors, String message) Deprecated.Usebuilder(WorkflowNode). Ideally, do not create instances directly, prefer usingINodeExecutionParams.returningException().Creates a new exception that should be thrown when a node wishes to return.- Parameters:
node- The node that did return.alwaysValue- Data always provided by the node, regardless of how it completed.successValue- Data provided by the node when successful.fileValue- Files provided by the node.softErrors- Soft errors that occurred during the node's execution.message- Message why the note returned, usually empty.
-
NodeReturnedException
@Deprecated public NodeReturnedException(WorkflowNode node, Object alwaysValue, Object successValue, IWorkflowFileValue fileValue, List<NodeSoftErrorException> softErrors, String message, Throwable cause) Deprecated.Usebuilder(WorkflowNode). Ideally, do not create instances directly, prefer usingINodeExecutionParams.returningException().Creates a new exception that should be thrown when a node wishes to return.- Parameters:
node- The node that did return.alwaysValue- Data always provided by the node, regardless of how it completed.successValue- Data provided by the node when successful.fileValue- Files provided by the node.softErrors- Soft errors that occurred during the node's execution.message- Message why the note returned, usually empty.cause- Cause that resulted in the node returning, usuallynull.
-
NodeReturnedException
@Deprecated public NodeReturnedException(WorkflowNode node, Object alwaysValue, Object successValue, IWorkflowFileValue fileValue, List<NodeSoftErrorException> softErrors, Throwable cause) Deprecated.Usebuilder(WorkflowNode). Ideally, do not create instances directly, prefer usingINodeExecutionParams.returningException().Creates a new exception that should be thrown when a node wishes to return.- Parameters:
node- The node that did return.alwaysValue- Data always provided by the node, regardless of how it completed.successValue- Data provided by the node when successful.fileValue- Files provided by the node.softErrors- Soft errors that occurred during the node's execution.cause- Cause that resulted in the node returning, usuallynull.
-
-
Method Details
-
builder
- Parameters:
node- The node that did finish execution.- Returns:
- A new builder for a
NodeReturnedException. - Since:
- 8.1.0
-
builder(WorkflowNode).