|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.tools.ToolErrorReporter
public class ToolErrorReporter
Error reporter for tools. Currently used by both the shell and the compiler.
| Constructor Summary | |
|---|---|
ToolErrorReporter(boolean reportWarnings)
|
|
ToolErrorReporter(boolean reportWarnings,
java.io.PrintStream err)
|
|
| Method Summary | |
|---|---|
void |
error(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
Report an error. |
static java.lang.String |
getMessage(java.lang.String messageId)
Look up the message corresponding to messageId in the net.sourceforge.htmlunit.corejs.javascript.tools.shell.resources.Messages property file. |
static java.lang.String |
getMessage(java.lang.String messageId,
java.lang.Object[] args)
|
static java.lang.String |
getMessage(java.lang.String messageId,
java.lang.Object arg1,
java.lang.Object arg2)
|
static java.lang.String |
getMessage(java.lang.String messageId,
java.lang.String argument)
|
boolean |
hasReportedError()
|
boolean |
isReportingWarnings()
|
static void |
reportException(ErrorReporter er,
RhinoException ex)
|
void |
reportException(RhinoException ex)
|
EvaluatorException |
runtimeError(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
Creates an EvaluatorException that may be thrown. |
void |
setIsReportingWarnings(boolean reportWarnings)
|
void |
warning(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
Report a warning. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ToolErrorReporter(boolean reportWarnings)
public ToolErrorReporter(boolean reportWarnings,
java.io.PrintStream err)
| Method Detail |
|---|
public static java.lang.String getMessage(java.lang.String messageId)
public static java.lang.String getMessage(java.lang.String messageId,
java.lang.String argument)
public static java.lang.String getMessage(java.lang.String messageId,
java.lang.Object arg1,
java.lang.Object arg2)
public static java.lang.String getMessage(java.lang.String messageId,
java.lang.Object[] args)
public void warning(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
ErrorReporter
warning in interface ErrorReportermessage - a String describing the warningsourceName - a String describing the JavaScript source where the warning
occured; typically a filename or URLline - the line number associated with the warninglineSource - the text of the line (may be null)lineOffset - the offset into lineSource where problem was detected
public void error(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
ErrorReporter
error in interface ErrorReportermessage - a String describing the errorsourceName - a String describing the JavaScript source where the error
occured; typically a filename or URLline - the line number associated with the errorlineSource - the text of the line (may be null)lineOffset - the offset into lineSource where problem was detected
public EvaluatorException runtimeError(java.lang.String message,
java.lang.String sourceName,
int line,
java.lang.String lineSource,
int lineOffset)
ErrorReporter
runtimeError in interface ErrorReportermessage - a String describing the errorsourceName - a String describing the JavaScript source where the error
occured; typically a filename or URLline - the line number associated with the errorlineSource - the text of the line (may be null)lineOffset - the offset into lineSource where problem was detected
public boolean hasReportedError()
public boolean isReportingWarnings()
public void setIsReportingWarnings(boolean reportWarnings)
public static void reportException(ErrorReporter er,
RhinoException ex)
public void reportException(RhinoException ex)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||