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

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • 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.

  • Constructor Details

    • CutException

      private CutException()
      Private constructor to force use of CUT_EXCEPTION