|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
public class StrictErrorReporter
A JavaScript error reporter that will log all warnings and errors, no matter how trivial.
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 |
---|
public StrictErrorReporter()
Method Detail |
---|
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 offset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |