com.gargoylesoftware.htmlunit.javascript
Interface JavaScriptErrorListener


public interface JavaScriptErrorListener

A listener for JavaScript exceptions.

Version:
$Revision: 6701 $
Author:
Ronald Brill

Method Summary
 void loadScriptError(HtmlPage htmlPage, URL scriptUrl, Exception exception)
          Informs about an exception during load of an javascript file refereed from a page.
 void malformedScriptURL(HtmlPage htmlPage, String url, MalformedURLException malformedURLException)
          Informs about a malformed url referencing to to script.
 void scriptException(HtmlPage htmlPage, ScriptException scriptException)
          Informs about a javascript exceptions.
 void timeoutError(HtmlPage htmlPage, long allowedTime, long executionTime)
          Informs about a javascript timeout error.
 

Method Detail

scriptException

void scriptException(HtmlPage htmlPage,
                     ScriptException scriptException)
Informs about a javascript exceptions.

Parameters:
htmlPage - the page that causes the problem
scriptException - the occurred script exception

timeoutError

void timeoutError(HtmlPage htmlPage,
                  long allowedTime,
                  long executionTime)
Informs about a javascript timeout error.

Parameters:
htmlPage - the page that causes the problem
allowedTime - the max time allowed for the execution
executionTime - the already consumed time

malformedScriptURL

void malformedScriptURL(HtmlPage htmlPage,
                        String url,
                        MalformedURLException malformedURLException)
Informs about a malformed url referencing to to script.

Parameters:
htmlPage - the page that causes the problem
url - the malformed url
malformedURLException - the occurred exception

loadScriptError

void loadScriptError(HtmlPage htmlPage,
                     URL scriptUrl,
                     Exception exception)
Informs about an exception during load of an javascript file refereed from a page.

Parameters:
htmlPage - the page that causes the problem
scriptUrl - the url to load the script from
exception - the occurred exception


Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.