Package: org.codehaus.groovy.control.messages

## [Java] Class SyntaxErrorMessage

- org.codehaus.groovy.control.messages.SyntaxErrorMessage

- A class for error messages produced by the parser system.

  Authors:
    Chris Poirier

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected SyntaxException` | `cause` |
    `protected org.codehaus.groovy.control.SourceUnit` | `source` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `SyntaxErrorMessage (SyntaxException cause, org.codehaus.groovy.control.SourceUnit source)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `SyntaxException` | `getCause()` Returns the underlying SyntaxException.
    `` | `void` | `write(PrintWriter output, Janitor janitor)` Writes out a nicely formatted summary of the syntax error.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Message` | `create, create, create, write, write`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### protected SyntaxException cause

    - #### protected org.codehaus.groovy.control.SourceUnit source

  - ### Constructor Detail

    - #### public SyntaxErrorMessage(SyntaxException cause, org.codehaus.groovy.control.SourceUnit source)

  - ### Method Detail

    - #### public SyntaxException getCause()

      Returns the underlying SyntaxException.

    - #### public void write(PrintWriter output, Janitor janitor)

      Writes out a nicely formatted summary of the syntax error.