Class InfiniteFlowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aquima.interactions.foundation.exception.AppException
-
- com.aquima.interactions.flow.FlowException
-
- com.aquima.interactions.flow.exception.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InfiniteFlowException(String flowName, String nodeId, IFlowPath path)
Constructs an exception for a specified flow name and path.InfiniteFlowException(String flowName, String nodeId, IFlowPath path, Throwable cause)
Constructs an exception for a specified flow name and path with the given cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFlowName()
This method returns the name of the flow in which the recursion was detected.IFlowPath
getFlowPath()
This method will return the path up to the point that the infinite loop was detected.String
getNodeId()
This method returns the id of the node in which the recursion was detected.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-