ppg.lex
Class LexicalError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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)
           
 
Method Summary
 java.lang.String filename()
           
 java.lang.String getMessage()
           
 int lineNumber()
           
 java.lang.String toString()
           
 void unparse(java.io.OutputStream o)
          Displays the parsed token in human-readable form.
 
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
 

Constructor Detail

LexicalError

public LexicalError(java.lang.String filename,
                    int lineNumber,
                    java.lang.String message)
Method Detail

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