Class CutException

All Implemented Interfaces:
Serializable

public final class CutException extends RuntimeException
Exception thrown when the evaluation of a rule backtracks to a cut.
See Also:
  • Field Details

    • CUT_EXCEPTION

      public static final CutException CUT_EXCEPTION
      Singleton instance.

      Reuse a single instance to avoid the stack trace generation overhead of creating a new exception each time. The CutException is specifically used for control flow in InterpretedUserDefinedPredicate.evaluate() and its stack trace is not required.