public class StrictErrorReporter extends Object implements net.sourceforge.htmlunit.corejs.javascript.ErrorReporter, Serializable
Constructor and Description |
---|
StrictErrorReporter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void warning(String message, String sourceName, int line, String lineSource, int lineOffset)
warning
in interface net.sourceforge.htmlunit.corejs.javascript.ErrorReporter
message
- the message to be displayedsourceName
- the name of the source fileline
- the line numberlineSource
- the source code that failedlineOffset
- the line offsetpublic void error(String message, String sourceName, int line, String lineSource, int lineOffset)
error
in interface net.sourceforge.htmlunit.corejs.javascript.ErrorReporter
message
- the message to be displayedsourceName
- the name of the source fileline
- the line numberlineSource
- the source code that failedlineOffset
- the line offsetpublic net.sourceforge.htmlunit.corejs.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset)
runtimeError
in interface net.sourceforge.htmlunit.corejs.javascript.ErrorReporter
message
- the message to be displayedsourceName
- the name of the source fileline
- the line numberlineSource
- the source code that failedlineOffset
- the line offsetCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.