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 a
NodeThrewException.- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionbuild()errorData(IDiscriminatedUnionMember<?, ?> errorData) Deprecated.Sets the error data made available by the node when it ends abruptly by throwing an exception.protected NodeThrewException.Builderself()Methods inherited from class AbstractAbruptCompletionException.Builder
alwaysValue, attachmentValue, cause, fileValue, message
-
Method Details
-
build
- Returns:
- A new
NodeThrewExceptionwith the current data.
-
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
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
- Specified by:
selfin classAbstractAbruptCompletionException.Builder<NodeThrewException.Builder>- Returns:
- This builder instance for chaining method calls.
-
errorData(String, Object).