| java.lang.Object org.mozilla.javascript.tools.ToolErrorReporter
ToolErrorReporter | public class ToolErrorReporter implements ErrorReporter(Code) | | Error reporter for tools.
Currently used by both the shell and the compiler.
|
Method Summary | |
public void | error(String message, String sourceName, int line, String lineSource, int lineOffset) | public static String | getMessage(String messageId) Look up the message corresponding to messageId in the
org.mozilla.javascript.tools.shell.resources.Messages property file. | public static String | getMessage(String messageId, String argument) | public static String | getMessage(String messageId, Object arg1, Object arg2) | public static String | getMessage(String messageId, Object[] args) | public boolean | hasReportedError() | public boolean | isReportingWarnings() | public static void | reportException(ErrorReporter er, RhinoException ex) | public void | reportException(RhinoException ex) | public EvaluatorException | runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset) | public void | setIsReportingWarnings(boolean reportWarnings) | public void | warning(String message, String sourceName, int line, String lineSource, int lineOffset) |
ToolErrorReporter | public ToolErrorReporter(boolean reportWarnings)(Code) | | |
ToolErrorReporter | public ToolErrorReporter(boolean reportWarnings, PrintStream err)(Code) | | |
getMessage | public static String getMessage(String messageId)(Code) | | Look up the message corresponding to messageId in the
org.mozilla.javascript.tools.shell.resources.Messages property file.
For internationalization support.
|
hasReportedError | public boolean hasReportedError()(Code) | | |
isReportingWarnings | public boolean isReportingWarnings()(Code) | | |
setIsReportingWarnings | public void setIsReportingWarnings(boolean reportWarnings)(Code) | | |
|
|