org.codehaus.groovy.control.messages
Class SyntaxErrorMessage

java.lang.Object
  extended byorg.codehaus.groovy.control.messages.Message
      extended byorg.codehaus.groovy.control.messages.SyntaxErrorMessage

public class SyntaxErrorMessage
extends Message

A class for error messages produced by the parser system.

Version:
$Id: SyntaxErrorMessage.java,v 1.1 2004/04/19 07:29:45 cpoirier Exp $
Author:
Chris Poirier

Field Summary
protected  SyntaxException cause
           
 
Constructor Summary
SyntaxErrorMessage(SyntaxException cause)
           
 
Method Summary
 SyntaxException getCause()
          Returns the underlying SyntaxException.
 void write(PrintWriter output, ProcessingUnit context, Janitor janitor)
          Writes out a nicely formatted summary of the syntax error.
 
Methods inherited from class org.codehaus.groovy.control.messages.Message
create, create, create, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cause

protected SyntaxException cause
Constructor Detail

SyntaxErrorMessage

public SyntaxErrorMessage(SyntaxException cause)
Method Detail

getCause

public SyntaxException getCause()
Returns the underlying SyntaxException.


write

public void write(PrintWriter output,
                  ProcessingUnit context,
                  Janitor janitor)
Writes out a nicely formatted summary of the syntax error.

Specified by:
write in class Message


Copyright © 2003-2004 The Codehaus. All Rights Reserved.