stella
Class SystemErrListener

java.lang.Object
  extended by stella.SystemErrListener
All Implemented Interfaces:
EventListener, ErrorListener

public class SystemErrListener
extends Object
implements ErrorListener

A very easy implementation of an ErrorListener. Any error event this listener receives is stripped from its machine sense and the remaining human-readable part of the error event is piped to System.err.

See Also:
ErrorEvent

Constructor Summary
SystemErrListener()
          Constructs a new System err listener.
 
Method Summary
 void errorOccured(ErrorEvent ee)
          Processes the error event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemErrListener

public SystemErrListener()
Constructs a new System err listener. Because System.err is a static stream, this method has to do nothing.

Method Detail

errorOccured

public void errorOccured(ErrorEvent ee)
Processes the error event. Takes the human-readable part of the ErrorEvent and outputs it through System.err.

Specified by:
errorOccured in interface ErrorListener
Parameters:
ee - The error event describing the error occured.