com.googlecode.htmlcompressor
Class DefaultErrorReporter

java.lang.Object
  extended by com.googlecode.htmlcompressor.DefaultErrorReporter
All Implemented Interfaces:
org.mozilla.javascript.ErrorReporter

public class DefaultErrorReporter
extends java.lang.Object
implements org.mozilla.javascript.ErrorReporter

Default ErrorReporter implementation that uses System.err stream for error reporting. Used by YUI Compressor to log errors during JavaScript compression.

Author:
Sergiy Kovalchuk
See Also:
Yahoo YUI Compressor, ErrorReporter Interface

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

Constructor Detail

DefaultErrorReporter

public DefaultErrorReporter()
Method Detail

warning

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

error

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

runtimeError

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