Class CutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.projog.core.predicate.CutException
- All Implemented Interfaces:
Serializable
Exception thrown when the evaluation of a rule backtracks to a cut.
- See Also:
-
Field Summary
Fields -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CUT_EXCEPTION
Singleton instance.Reuse a single instance to avoid the stack trace generation overhead of creating a new exception each time. The
CutExceptionis specifically used for control flow inInterpretedUserDefinedPredicate.evaluate()and its stack trace is not required.
-