org.apache.cocoon.components.flow.javascript
Class JSErrorReporter

java.lang.Object
  extended byorg.apache.cocoon.components.flow.javascript.JSErrorReporter
All Implemented Interfaces:
org.mozilla.javascript.ErrorReporter

public class JSErrorReporter
extends Object
implements org.mozilla.javascript.ErrorReporter

Implements a Rhino JavaScript ErrorReporter. Like ToolErrorReporter but logs to supplied logger instead of stdout

Version:
CVS $Id: JSErrorReporter.java 292797 2005-09-30 16:05:46Z sylvain $

Constructor Summary
JSErrorReporter(Logger logger)
           
 
Method Summary
 void error(String message, String sourceName, int line, String lineSrc, int column)
           
 org.mozilla.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSrc, int column)
           
 void warning(String message, String sourceName, int line, String lineSrc, int column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSErrorReporter

public JSErrorReporter(Logger logger)
Method Detail

error

public void error(String message,
                  String sourceName,
                  int line,
                  String lineSrc,
                  int column)
Specified by:
error in interface org.mozilla.javascript.ErrorReporter

warning

public void warning(String message,
                    String sourceName,
                    int line,
                    String lineSrc,
                    int column)
Specified by:
warning in interface org.mozilla.javascript.ErrorReporter

runtimeError

public org.mozilla.javascript.EvaluatorException runtimeError(String message,
                                                              String sourceName,
                                                              int line,
                                                              String lineSrc,
                                                              int column)
Specified by:
runtimeError in interface org.mozilla.javascript.ErrorReporter


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.