Class TimeoutError

  • All Implemented Interfaces:
    java.io.Serializable

    public class TimeoutError
    extends java.lang.Error
    An error that is thrown when a script has been running too long.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeoutError​(long allowedTime, long executionTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) long getAllowedTime()
      Returns the allowed time.
      (package private) long getExecutionTime()
      Returns the execution time.
      • 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
    • Field Detail

      • allowedTime_

        private final long allowedTime_
      • executionTime_

        private final long executionTime_
    • Constructor Detail

      • TimeoutError

        TimeoutError​(long allowedTime,
                     long executionTime)
    • Method Detail

      • getAllowedTime

        long getAllowedTime()
        Returns the allowed time.
        Returns:
        the allowed time
      • getExecutionTime

        long getExecutionTime()
        Returns the execution time.
        Returns:
        the execution time