|
|||||
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(org.apache.commons.logging.Log log)
Create an instance. |
Method Summary | |
---|---|
void |
error(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
Log an error |
org.mozilla.javascript.EvaluatorException |
runtimeError(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
Log a runtime error |
void |
warning(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
Log a warning |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrictErrorReporter(org.apache.commons.logging.Log log)
log
- The log to use when reporting errorsMethod Detail |
---|
public void error(java.lang.String message, java.lang.String sourceName, int line, java.lang.String lineSource, int lineOffset)
error
in interface org.mozilla.javascript.ErrorReporter
message
- The message to be displayed.sourceName
- The name of the source fileline
- The line numberlineSource
- The source code that failedlineOffset
- The line offsetpublic org.mozilla.javascript.EvaluatorException runtimeError(java.lang.String message, java.lang.String sourceName, int line, java.lang.String lineSource, int lineOffset)
runtimeError
in interface org.mozilla.javascript.ErrorReporter
message
- The message to be displayed.sourceName
- The name of the source fileline
- The line numberlineSource
- The source code that failedlineOffset
- The line offset
public void warning(java.lang.String message, java.lang.String sourceName, int line, java.lang.String lineSource, int lineOffset)
warning
in interface org.mozilla.javascript.ErrorReporter
message
- The message to be displayed.sourceName
- 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 |