Class CircularReasoningException

All Implemented Interfaces:
Serializable

public class CircularReasoningException extends RuleEngineException
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 Details

    • CircularReasoningException

      public CircularReasoningException(ValueReference goal, Stack<ValueReference> goalStack)
      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

      public ValueReference getGoal()
      This method returns the value reference that caused the exception.
      Returns:
      the value reference that caused the exception.
    • getGoalStack

      public Stack<ValueReference> 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.