Package ai.libs.jaicore.basic.algorithm
Class DelayedTerminationCheckException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ai.libs.jaicore.basic.algorithm.DelayedTerminationCheckException
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class DelayedTerminationCheckException extends java.lang.ExceptionThe purpose of this exception is to indicate that the checkTermination method of AAlgorithm was invoked too late. Too late means that the algorithm has been interrupted, timeouted or canceled at least 100ms prior to the invocation of the check. The motivation is that it is difficult to track time leaks, i.e. which code is responsible that the control is not returned in time after an interruption or timeout. This exception is thrown by checkTermination in order to enforce developers to handle this particular case and to ease debugging.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DelayedTerminationCheckException(java.lang.String message, long delay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDelay()
-