Class InfiniteFlowException

All Implemented Interfaces:
Serializable

public class InfiniteFlowException extends FlowException
Exception used to indicate an infinite loop (recursion) was detected during the flow process.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • InfiniteFlowException

      public InfiniteFlowException(String flowName, String nodeId, IFlowPath path)
      Constructs an exception for a specified flow name and path.
      Parameters:
      flowName - The name of the flow in which the recursion was detected.
      nodeId - The id of the node in the flow.
      path - The flow path at which the error was detected.
    • InfiniteFlowException

      public InfiniteFlowException(String flowName, String nodeId, IFlowPath path, Throwable cause)
      Constructs an exception for a specified flow name and path with the given cause.
      Parameters:
      flowName - The name of the flow in which the recursion was detected.
      nodeId - The id of the node in the flow.
      path - The flow path at which the error was detected.
      cause - the cause of this exception
  • Method Details

    • getFlowName

      public String getFlowName()
      This method returns the name of the flow in which the recursion was detected.
      Returns:
      The name of the flow in which the recursion was detected.
    • getNodeId

      public String getNodeId()
      This method returns the id of the node in which the recursion was detected.
      Returns:
      The name of the node in which the recursion was detected.
    • getFlowPath

      public IFlowPath getFlowPath()
      This method will return the path up to the point that the infinite loop was detected. The last node of the path will point to the node that tried to (re)start the flow indicated by the getFlowName method of this class.
      Returns:
      The flow path at which the error was detected.