Class PrintStreamErrorReportGenerator

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

public class PrintStreamErrorReportGenerator extends Object implements SortingErrorManager.ErrorReportGenerator
An error report generator that prints errors and warnings to the print stream provided.

It collaborates with a SourceExcerptProvider via a MessageFormatter to display error messages with source context.

  • Constructor Details

    • PrintStreamErrorReportGenerator

      public PrintStreamErrorReportGenerator(MessageFormatter formatter, PrintStream stream, int summaryDetailLevel)
      Creates an error report generator.
      Parameters:
      formatter - the message formatter used to format the messages
      stream - the stream on which the errors and warnings should be printed. This class does not close the stream
  • Method Details