org.teatrove.tea.util
Class ConsoleErrorReporter

java.lang.Object
  extended by org.teatrove.tea.util.ConsoleErrorReporter
All Implemented Interfaces:
EventListener, ErrorListener

public class ConsoleErrorReporter
extends Object
implements ErrorListener

ConsoleErrorReporter takes ErrorEvents and prints detailed messages to a PrintStream. When no longer needed, close the ConsoleErrorReporter to ensure all open resources (except the PrintStream) are closed.

Author:
Brian S O'Neill

Constructor Summary
ConsoleErrorReporter(PrintStream out)
           
 
Method Summary
 void close()
          Closes all open resources.
 void compileError(ErrorEvent e)
           
protected  void finalize()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleErrorReporter

public ConsoleErrorReporter(PrintStream out)
Method Detail

close

public void close()
           throws IOException
Closes all open resources.

Throws:
IOException

compileError

public void compileError(ErrorEvent e)
Specified by:
compileError in interface ErrorListener

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.