Package de.xima.fc.exceptions
Class NodeThrewException.Builder
- java.lang.Object
-
- de.xima.fc.exceptions.AbstractAbruptCompletionException.Builder<NodeThrewException.Builder>
-
- de.xima.fc.exceptions.NodeThrewException.Builder
-
- Enclosing class:
- NodeThrewException
public static final class NodeThrewException.Builder extends AbstractAbruptCompletionException.Builder<NodeThrewException.Builder>
A simple builder for configuring aNodeThrewException.- Since:
- 8.1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NodeThrewExceptionbuild()NodeThrewException.BuildererrorData(IDiscriminatedUnionMember<?,?> errorData)Deprecated.NodeThrewException.BuildererrorData(String errorCode, Object errorData)Sets the error data made available by the node when it ends abruptly by throwing an exception.protected NodeThrewException.Builderself()-
Methods inherited from class de.xima.fc.exceptions.AbstractAbruptCompletionException.Builder
alwaysValue, attachmentValue, cause, fileValue, message
-
-
-
-
Method Detail
-
build
public NodeThrewException build()
- Returns:
- A new
NodeThrewExceptionwith the current data.
-
errorData
@Deprecated public NodeThrewException.Builder errorData(IDiscriminatedUnionMember<?,?> errorData)
Deprecated.- Parameters:
errorData- Data made available by the node when it ends abruptly by throwing an exception.- Returns:
- This builder instance for chaining method calls.
-
errorData
public NodeThrewException.Builder errorData(String errorCode, Object errorData)
Sets the error data made available by the node when it ends abruptly by throwing an exception.- Parameters:
errorCode- The error code identifying the type of error that occurred.errorData- Data made available by the node when it ends abruptly by throwing an exception.- Returns:
- This builder instance for chaining method calls.
-
self
protected NodeThrewException.Builder self()
- Specified by:
selfin classAbstractAbruptCompletionException.Builder<NodeThrewException.Builder>- Returns:
- This builder instance for chaining method calls.
-
-