Package de.xima.fc.exceptions
Class NodeReturnedException.Builder
- java.lang.Object
-
- de.xima.fc.exceptions.AbstractAbruptCompletionException.Builder<NodeReturnedException.Builder>
-
- de.xima.fc.exceptions.NodeReturnedException.Builder
-
- Enclosing class:
- NodeReturnedException
public static final class NodeReturnedException.Builder extends AbstractAbruptCompletionException.Builder<NodeReturnedException.Builder>
A simple builder for configuring aNodeReturnedException
.- Since:
- 8.1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeReturnedException
build()
protected NodeReturnedException.Builder
self()
NodeReturnedException.Builder
softErrors(List<NodeSoftErrorException> softErrors)
NodeReturnedException.Builder
successValue(Object successValue)
-
Methods inherited from class de.xima.fc.exceptions.AbstractAbruptCompletionException.Builder
alwaysValue, attachmentValue, cause, fileValue, message
-
-
-
-
Method Detail
-
build
public NodeReturnedException build()
- Returns:
- A new
NodeReturnedException
with the current data.
-
softErrors
public NodeReturnedException.Builder softErrors(List<NodeSoftErrorException> softErrors)
- Parameters:
softErrors
- Soft errors that occurred during the node's execution.- Returns:
- This builder instance for chaining method calls.
-
successValue
public NodeReturnedException.Builder successValue(Object successValue)
- Parameters:
successValue
- Data provided by the node when successful.- Returns:
- This builder instance for chaining method calls.
-
self
protected NodeReturnedException.Builder self()
- Specified by:
self
in classAbstractAbruptCompletionException.Builder<NodeReturnedException.Builder>
- Returns:
- This builder instance for chaining method calls.
-
-