Class DelayedTerminationCheckException

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class DelayedTerminationCheckException
    extends java.lang.Exception
    The 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getDelay()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DelayedTerminationCheckException

        public DelayedTerminationCheckException​(java.lang.String message,
                                                long delay)
    • Method Detail

      • getDelay

        public long getDelay()