Class TimeoutError

java.lang.Object
java.lang.Throwable
java.lang.Error
org.htmlunit.javascript.TimeoutError
All Implemented Interfaces:
Serializable

public class TimeoutError extends Error
An error that is thrown when a script has been running too long.
See Also:
  • Field Details

    • allowedTime_

      private final long allowedTime_
    • executionTime_

      private final long executionTime_
  • Constructor Details

    • TimeoutError

      TimeoutError(long allowedTime, long executionTime)
  • Method Details

    • getAllowedTime

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

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