org.apache.cocoon.components.flow.javascript
Class JSErrorReporter
java.lang.Object
org.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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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 |
JSErrorReporter
public JSErrorReporter(Logger logger)
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-2010 The Apache Software Foundation. All Rights Reserved.