Class JsonErrorReportGenerator

java.lang.Object
com.google.javascript.jscomp.JsonErrorReportGenerator
All Implemented Interfaces:
SortingErrorManager.ErrorReportGenerator

public class JsonErrorReportGenerator extends Object implements SortingErrorManager.ErrorReportGenerator
An error report generator that prints error and warning data to the print stream as an array of JSON objects.
  • Constructor Details

    • JsonErrorReportGenerator

      public JsonErrorReportGenerator(PrintStream stream, SourceExcerptProvider sourceExcerptProvider)
      Creates an error manager.
      Parameters:
      stream - the stream on which the errors and warnings should be printed. This class does not close the stream
      sourceExcerptProvider - used to retrieve the source context which generated the error
  • Method Details