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
FieldsModifier and TypeFieldDescriptionstatic final CutExceptionSingleton instance.private static final long -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
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.
-
-
Constructor Details
-
CutException
private CutException()Private constructor to force use ofCUT_EXCEPTION
-