errors
Class SyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by errors.GUIFileException
              extended by errors.SyntaxException
All Implemented Interfaces:
Serializable

public class SyntaxException
extends GUIFileException

An error caught by the parser. All such exceptions originate as parser.gen.ParseException or parser.gen.TokenMgrError instances. Therefore this class's principal constructors take one and adapt it to this public exception hierarchy.

See Also:
Serialized Form

Field Summary
 Throwable original
          The original exception.
 
Fields inherited from class errors.GUIFileException
lineNum
 
Constructor Summary
SyntaxException(ParseException original)
           
SyntaxException(String msg, ParseException original)
          Override the message provided by the original exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

original

public final Throwable original
The original exception.

Constructor Detail

SyntaxException

public SyntaxException(ParseException original)
Parameters:
original - The parser.gen.ParseException that originally reported the error.

SyntaxException

public SyntaxException(String msg,
                       ParseException original)
Override the message provided by the original exception.

Parameters:
msg - The error message. It need not contain the line number; this will be extracted from the original exception.
original - The original exception.