[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
Modifiers | Name | Description |
---|---|---|
protected SyntaxException | cause | |
protected SourceUnit | source |
Constructor Summary
Constructor and description |
---|
SyntaxErrorMessage
(SyntaxException cause, SourceUnit source) |
Methods Summary
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
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.
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/control/messages/SyntaxErrorMessage.html