ppg.lex
Class LexicalError
java.lang.Object
java.lang.Throwable
java.lang.Exception
ppg.lex.LexicalError
- All Implemented Interfaces:
- java.io.Serializable
public class LexicalError
- extends java.lang.Exception
- See Also:
- Serialized Form
Constructor Summary |
LexicalError(java.lang.String filename,
int lineNumber,
java.lang.String message)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LexicalError
public LexicalError(java.lang.String filename,
int lineNumber,
java.lang.String message)
unparse
public void unparse(java.io.OutputStream o)
throws java.io.IOException
- Displays the parsed token in human-readable form.
The token has the form <token-type, attribute, line-number>
- Parameters:
o
- The OutputStream onto which to print the token
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
filename
public java.lang.String filename()
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
lineNumber
public int lineNumber()
- Returns:
- line number on which the token was found