org.riotfamily.common.web.compressor
Class RiotLogErrorReporter

java.lang.Object
  extended by org.riotfamily.common.web.compressor.RiotLogErrorReporter
All Implemented Interfaces:
org.mozilla.javascript.ErrorReporter

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

Since:
8.0
Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
RiotLogErrorReporter(RiotLog log)
           
RiotLogErrorReporter(String categoryName)
           
 
Method Summary
 void error(String message, String sourceName, int line, String lineSource, int lineOffset)
           
protected  String formatMessage(String message, String sourceName, int line, String lineSource, int lineOffset)
           
 org.mozilla.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset)
           
 void setSourceName(String sourceName)
           
 void warning(String message, String sourceName, int line, String lineSource, int lineOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiotLogErrorReporter

public RiotLogErrorReporter(String categoryName)

RiotLogErrorReporter

public RiotLogErrorReporter(RiotLog log)
Method Detail

setSourceName

public void setSourceName(String sourceName)

warning

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

error

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

formatMessage

protected String formatMessage(String message,
                               String sourceName,
                               int line,
                               String lineSource,
                               int lineOffset)

runtimeError

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