Package org.codehaus.groovy.control
Class MultipleCompilationErrorsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.lang.GroovyRuntimeException
org.codehaus.groovy.control.CompilationFailedException
org.codehaus.groovy.control.MultipleCompilationErrorsException
- All Implemented Interfaces:
Serializable
Represents multiple other exceptions
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ErrorCollectorCollector containing the aggregated compilation errors.Fields inherited from class org.codehaus.groovy.control.CompilationFailedException
phase, unit -
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception that wraps the supplied error collector. -
Method Summary
Modifier and TypeMethodDescriptionReturns the collector containing the recorded compilation errors.Formats the aggregated compilation errors as a message string.Methods inherited from class org.codehaus.groovy.control.CompilationFailedException
getUnitMethods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, getMessageWithoutLocationText, getModule, getNode, setModuleMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
collector
Collector containing the aggregated compilation errors.
-
-
Constructor Details
-
MultipleCompilationErrorsException
Creates an exception that wraps the supplied error collector.- Parameters:
ec- the collector to wrap, ornullto create an empty one
-
-
Method Details
-
getErrorCollector
Returns the collector containing the recorded compilation errors.- Returns:
- the wrapped error collector
-
getMessage
Formats the aggregated compilation errors as a message string.- Overrides:
getMessagein classGroovyRuntimeException- Returns:
- the formatted error message
-