Package: org.codehaus.groovy.control.messages

## [Java] Class SyntaxErrorMessage

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

-     public class SyntaxErrorMessage
      extends Message

  A class for error messages produced by the parser system.

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected SyntaxException` | `cause` |
    `protected SourceUnit` | `source` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `SyntaxErrorMessage(SyntaxException cause, SourceUnit source)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public SyntaxException` | `getCause()` Returns the underlying SyntaxException.
    `` | `public 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`

- - ### Field Detail

    - #### protected SyntaxException cause

    - #### protected SourceUnit source

  - ### Constructor Detail

    - #### public SyntaxErrorMessage(SyntaxException cause, 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.