Class SyntaxErrorMessage
java.lang.Object
org.codehaus.groovy.control.messages.Message
org.codehaus.groovy.control.messages.SyntaxErrorMessage
A class for error messages produced by the parser system.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SyntaxExceptionUnderlying syntax exception.protected SourceUnitSource unit containing the syntax error. -
Constructor Summary
ConstructorsConstructorDescriptionSyntaxErrorMessage(SyntaxException cause, SourceUnit source) Creates a message for the supplied syntax error. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns the underlying SyntaxException.voidwrite(PrintWriter output, Janitor janitor) Writes out a nicely formatted summary of the syntax error.
-
Field Details
-
cause
Underlying syntax exception. -
source
Source unit containing the syntax error.
-
-
Constructor Details
-
SyntaxErrorMessage
Creates a message for the supplied syntax error.- Parameters:
cause- the syntax exception to reportsource- the source unit containing the error
-
-
Method Details