Class MultipleCompilationErrorsException

All Implemented Interfaces:
Serializable

public class MultipleCompilationErrorsException extends CompilationFailedException
Represents multiple other exceptions
See Also:
  • Field Details

    • collector

      protected ErrorCollector collector
      Collector containing the aggregated compilation errors.
  • Constructor Details

    • MultipleCompilationErrorsException

      public MultipleCompilationErrorsException(ErrorCollector ec)
      Creates an exception that wraps the supplied error collector.
      Parameters:
      ec - the collector to wrap, or null to create an empty one
  • Method Details

    • getErrorCollector

      public ErrorCollector getErrorCollector()
      Returns the collector containing the recorded compilation errors.
      Returns:
      the wrapped error collector
    • getMessage

      public String getMessage()
      Formats the aggregated compilation errors as a message string.
      Overrides:
      getMessage in class GroovyRuntimeException
      Returns:
      the formatted error message