| java.lang.Object org.apache.cocoon.components.flow.javascript.JSErrorReporter
JSErrorReporter | public class JSErrorReporter implements ErrorReporter(Code) | | Implements a Rhino JavaScript
org.mozilla.javascript.ErrorReporter .
Like ToolErrorReporter but logs to supplied logger instead of stdout
version: CVS $Id: JSErrorReporter.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | error(String message, String sourceName, int line, String lineSrc, int column) | String | getErrorMessage(String type, String message, String sourceName, int line, String lineSource, int column) | public EvaluatorException | runtimeError(String message, String sourceName, int line, String lineSrc, int column) | public void | warning(String message, String sourceName, int line, String lineSrc, int column) |
JSErrorReporter | public JSErrorReporter(Logger logger)(Code) | | |
getErrorMessage | String getErrorMessage(String type, String message, String sourceName, int line, String lineSource, int column)(Code) | | Formats error message
Parameters: type - a String value, indicating the errortype (error or warning) Parameters: message - a String value, the error or warningmessage Parameters: line - an int value, the original cummulativeline number Parameters: lineSource - a String value, the text of theline in the file Parameters: column - an int value, the column inlineSource where the error appeared a String value, the aggregated errormessage, with the source file and line number adjusted to thereal values |
runtimeError | public EvaluatorException runtimeError(String message, String sourceName, int line, String lineSrc, int column)(Code) | | |
|
|