com.gargoylesoftware.htmlunit.javascript
Class StrictErrorReporter

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
All Implemented Interfaces:
Serializable, net.sourceforge.htmlunit.corejs.javascript.ErrorReporter

public class StrictErrorReporter
extends Object
implements net.sourceforge.htmlunit.corejs.javascript.ErrorReporter, Serializable

A JavaScript error reporter that will log all warnings and errors, no matter how trivial.

Version:
$Revision: 5563 $
Author:
Mike Bowler, Marc Guillemot
See Also:
Serialized Form

Constructor Summary
StrictErrorReporter()
           
 
Method Summary
 void error(String message, String sourceName, int line, String lineSource, int lineOffset)
          Logs an error.
 net.sourceforge.htmlunit.corejs.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset)
          Logs a runtime error.
 void warning(String message, String sourceName, int line, String lineSource, int lineOffset)
          Logs a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictErrorReporter

public StrictErrorReporter()
Method Detail

warning

public void warning(String message,
                    String sourceName,
                    int line,
                    String lineSource,
                    int lineOffset)
Logs a warning.

Specified by:
warning in interface net.sourceforge.htmlunit.corejs.javascript.ErrorReporter
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

error

public void error(String message,
                  String sourceName,
                  int line,
                  String lineSource,
                  int lineOffset)
Logs an error.

Specified by:
error in interface net.sourceforge.htmlunit.corejs.javascript.ErrorReporter
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

runtimeError

public net.sourceforge.htmlunit.corejs.javascript.EvaluatorException runtimeError(String message,
                                                                                  String sourceName,
                                                                                  int line,
                                                                                  String lineSource,
                                                                                  int lineOffset)
Logs a runtime error.

Specified by:
runtimeError in interface net.sourceforge.htmlunit.corejs.javascript.ErrorReporter
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
Returns:
an evaluator exception


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