Class SilentJavaScriptErrorListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void loadScriptError​(HtmlPage page, java.net.URL scriptUrl, java.lang.Exception exception)
      Informs about an exception during load of a javascript file refereed from a page.
      void malformedScriptURL​(HtmlPage page, java.lang.String url, java.net.MalformedURLException malformedURLException)
      Informs about a malformed url referencing to to script.
      void scriptException​(HtmlPage page, ScriptException scriptException)
      Informs about a javascript exceptions.
      void timeoutError​(HtmlPage page, long allowedTime, long executionTime)
      Informs about a javascript timeout error.
      void warn​(java.lang.String message, java.lang.String sourceName, int line, java.lang.String lineSource, int lineOffset)
      Informs about a javascript warning.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SilentJavaScriptErrorListener

        public SilentJavaScriptErrorListener()
    • Method Detail

      • timeoutError

        public void timeoutError​(HtmlPage page,
                                 long allowedTime,
                                 long executionTime)
        Description copied from interface: JavaScriptErrorListener
        Informs about a javascript timeout error.
        Specified by:
        timeoutError in interface JavaScriptErrorListener
        Parameters:
        page - the page that causes the problem
        allowedTime - the max time allowed for the execution
        executionTime - the already consumed time
      • malformedScriptURL

        public void malformedScriptURL​(HtmlPage page,
                                       java.lang.String url,
                                       java.net.MalformedURLException malformedURLException)
        Description copied from interface: JavaScriptErrorListener
        Informs about a malformed url referencing to to script.
        Specified by:
        malformedScriptURL in interface JavaScriptErrorListener
        Parameters:
        page - the page that causes the problem
        url - the malformed url
        malformedURLException - the occurred exception
      • loadScriptError

        public void loadScriptError​(HtmlPage page,
                                    java.net.URL scriptUrl,
                                    java.lang.Exception exception)
        Description copied from interface: JavaScriptErrorListener
        Informs about an exception during load of a javascript file refereed from a page.
        Specified by:
        loadScriptError in interface JavaScriptErrorListener
        Parameters:
        page - the page that causes the problem
        scriptUrl - the url to load the script from
        exception - the occurred exception
      • warn

        public void warn​(java.lang.String message,
                         java.lang.String sourceName,
                         int line,
                         java.lang.String lineSource,
                         int lineOffset)
        Description copied from interface: JavaScriptErrorListener
        Informs about a javascript warning.
        Specified by:
        warn in interface JavaScriptErrorListener
        Parameters:
        message - the message to be displayed
        sourceName - the name of the source file
        line - the line number
        lineSource - the source code that failed
        lineOffset - the line offset