public class DefaultJavaScriptErrorListener extends Object implements JavaScriptErrorListener, Serializable
JavaScriptErrorListener
that does only
logging in some cases.Constructor and Description |
---|
DefaultJavaScriptErrorListener() |
Modifier and Type | Method and Description |
---|---|
void |
loadScriptError(InteractivePage page,
URL scriptUrl,
Exception exception)
Informs about an exception during load of an javascript file refereed from a page.
|
void |
malformedScriptURL(InteractivePage page,
String url,
MalformedURLException malformedURLException)
Informs about a malformed url referencing to to script.
|
void |
scriptException(InteractivePage page,
ScriptException scriptException)
Informs about a javascript exceptions.
|
void |
timeoutError(InteractivePage page,
long allowedTime,
long executionTime)
Informs about a javascript timeout error.
|
public void scriptException(InteractivePage page, ScriptException scriptException)
JavaScriptErrorListener
scriptException
in interface JavaScriptErrorListener
page
- the page that causes the problemscriptException
- the occurred script exceptionpublic void timeoutError(InteractivePage page, long allowedTime, long executionTime)
JavaScriptErrorListener
timeoutError
in interface JavaScriptErrorListener
page
- the page that causes the problemallowedTime
- the max time allowed for the executionexecutionTime
- the already consumed timepublic void malformedScriptURL(InteractivePage page, String url, MalformedURLException malformedURLException)
JavaScriptErrorListener
malformedScriptURL
in interface JavaScriptErrorListener
page
- the page that causes the problemurl
- the malformed urlmalformedURLException
- the occurred exceptionpublic void loadScriptError(InteractivePage page, URL scriptUrl, Exception exception)
JavaScriptErrorListener
loadScriptError
in interface JavaScriptErrorListener
page
- the page that causes the problemscriptUrl
- the url to load the script fromexception
- the occurred exceptionCopyright © 2002–2018 Gargoyle Software Inc.. All rights reserved.