chesspresso.pgn
Class PGNSimpleErrorHandler

java.lang.Object
  |
  +--chesspresso.pgn.PGNSimpleErrorHandler
All Implemented Interfaces:
PGNErrorHandler

public class PGNSimpleErrorHandler
extends java.lang.Object
implements PGNErrorHandler

Simple implementation of a PGN error handler. Write the errors and warnings directly to a configured print stream.

Version:
$Revision: 1.1 $
Author:
Bernhard Seybold

Constructor Summary
PGNSimpleErrorHandler(java.io.PrintStream out)
           
 
Method Summary
 void handleError(PGNSyntaxError error)
          Called in case of an error.
 void handleWarning(PGNSyntaxError warning)
          Called in case of a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGNSimpleErrorHandler

public PGNSimpleErrorHandler(java.io.PrintStream out)
Method Detail

handleError

public void handleError(PGNSyntaxError error)
Description copied from interface: PGNErrorHandler
Called in case of an error.

Specified by:
handleError in interface PGNErrorHandler
Returns:
the error

handleWarning

public void handleWarning(PGNSyntaxError warning)
Description copied from interface: PGNErrorHandler
Called in case of a warning.

Specified by:
handleWarning in interface PGNErrorHandler
Returns:
the warning