chesspresso.pgn
Class PGNSyntaxError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--chesspresso.pgn.PGNSyntaxError
All Implemented Interfaces:
java.io.Serializable

public class PGNSyntaxError
extends java.lang.Exception

Represents PGN syntax errors (and warnings).

Version:
$Revision: 1.1 $
Author:
Bernhard Seybold
See Also:
Serialized Form

Field Summary
static int ERROR
           
static int MESSAGE
           
static int WARNING
           
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
PGNSyntaxError(int severity, java.lang.String msg, java.lang.String filename, int lineNumber, java.lang.String lastToken)
           
 
Method Summary
 java.lang.String getFilename()
           
 java.lang.String getLastToken()
           
 int getLineNumber()
           
 int getSeverity()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR

public static final int ERROR
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

MESSAGE

public static final int MESSAGE
See Also:
Constant Field Values
Constructor Detail

PGNSyntaxError

public PGNSyntaxError(int severity,
                      java.lang.String msg,
                      java.lang.String filename,
                      int lineNumber,
                      java.lang.String lastToken)
Method Detail

getSeverity

public int getSeverity()

getFilename

public java.lang.String getFilename()

getLineNumber

public int getLineNumber()

getLastToken

public java.lang.String getLastToken()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable