Package org.htmlunit.javascript
Class TimeoutError
java.lang.Object
java.lang.Throwable
java.lang.Error
org.htmlunit.javascript.TimeoutError
- All Implemented Interfaces:
Serializable
An error that is thrown when a script has been running too long.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long
private final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) long
Returns the allowed time.(package private) long
Returns the execution time.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
-