Class CircularReasoningException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.rule.RuleEngineException
com.aquima.interactions.rule.exception.CircularReasoningException
- All Implemented Interfaces:
Serializable
Exception used to indicate a circular reasoning has been detected during the evaluation of an expression.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCircularReasoningException
(ValueReference goal, Stack<ValueReference> goalStack) Constructs the exception with the value reference that caused the error. -
Method Summary
Modifier and TypeMethodDescriptiongetGoal()
This method returns the value reference that caused the exception.This method returns the goal stack from the moment the circular reasoning was detected.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CircularReasoningException
Constructs the exception with the value reference that caused the error.- Parameters:
goal
- The value reference that caused the error.goalStack
- The goal stack at the moment the circular reasoning was detected.
-
-
Method Details
-
getGoal
This method returns the value reference that caused the exception.- Returns:
- the value reference that caused the exception.
-
getGoalStack
This method returns the goal stack from the moment the circular reasoning was detected.- Returns:
- the goal stack from the moment the circular reasoning was detected.
-