errors
Class SyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
errors.GUIFileException
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
original
public final Throwable original
- The original exception.
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.