Package org.projog.core.predicate
Class CutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.projog.core.predicate.CutException
-
- All Implemented Interfaces:
java.io.Serializable
public final class CutException extends java.lang.RuntimeExceptionException thrown when the evaluation of a rule backtracks to a cut.- See Also:
Cut,InterpretedUserDefinedPredicate, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CutExceptionCUT_EXCEPTIONSingleton instance.private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateCutException()Private constructor to force use ofCUT_EXCEPTION
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
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
CutExceptionis specifically used for control flow inInterpretedUserDefinedPredicate.evaluate()and its stack trace is not required.
-
-
Constructor Detail
-
CutException
private CutException()
Private constructor to force use ofCUT_EXCEPTION
-
-