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
Exception used to indicate an infinite loop (recursion) was detected during the flow process.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInfiniteFlowException
(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
Modifier and TypeMethodDescriptionThis method returns the name of the flow in which the recursion was detected.This method will return the path up to the point that the infinite loop was detected.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 Details
-
InfiniteFlowException
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
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
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
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
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.
-