Class AbstractAbruptCompletionException.Builder<Self extends AbstractAbruptCompletionException.Builder>

java.lang.Object
de.xima.fc.exceptions.AbstractAbruptCompletionException.Builder<Self>
Type Parameters:
Self - Type of the builder implementation.
Direct Known Subclasses:
NodeReturnedException.Builder, NodeThrewException.Builder
Enclosing class:
AbstractAbruptCompletionException

public abstract static class AbstractAbruptCompletionException.Builder<Self extends AbstractAbruptCompletionException.Builder> extends Object
A simple builder for an AbstractAbruptCompletionException
Since:
8.1.0
  • Constructor Details

    • Builder

      protected Builder(WorkflowNode node)
      Parameters:
      node - The node that did finish execution.
  • Method Details

    • alwaysValue

      public final Self alwaysValue(Object alwaysValue)
      Parameters:
      alwaysValue - Data made available by the node irrespective of how it finished.
      Returns:
      This builder for chaining method calls.
    • cause

      public final Self cause(Throwable cause)
      Parameters:
      cause - Underlying cause of the error that occurred.
      Returns:
      This builder for chaining method calls.
    • message

      public final Self message(String message)
      Parameters:
      message - Error message describing the error that occurred.
      Returns:
      This builder for chaining method calls.
    • attachmentValue

      public final Self attachmentValue(IWorkflowAttachmentValue attachmentValue)
      Parameters:
      attachmentValue - List of attachments made available by the node.
      Returns:
      This builder for chaining method calls.
    • fileValue

      public final Self fileValue(IWorkflowFileValue fileValue)
      Parameters:
      fileValue - List of files made available by the node.
      Returns:
      This builder for chaining method calls.
    • self

      protected abstract Self self()
      Returns:
      This builder instance for chaining method calls.