gov.llnl.babel.parsers.sidl
Class SIDLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gov.llnl.babel.parsers.sidl.SIDLException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GrammarException, SymbolException

public class SIDLException
extends java.lang.Exception

Exception SIDLException is the base class for both grammar (e.g., parse) and symbol (e.g., analysis) exceptions. This base class contains location and production information.

See Also:
Serialized Form

Constructor Summary
SIDLException(int line, int column, int production)
          Create a SIDLException located at the specified line and column within the specified production.
 
Method Summary
 int getColumnNumber()
          Return the column number of the token that caused the exception.
 int getLineNumber()
          Return the line number of the token that caused the exception.
 int getProductionNumber()
          Return the production number of the token that caused the exception.
 
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
 

Constructor Detail

SIDLException

public SIDLException(int line,
                     int column,
                     int production)
Create a SIDLException located at the specified line and column within the specified production.

Method Detail

getLineNumber

public int getLineNumber()
Return the line number of the token that caused the exception.


getColumnNumber

public int getColumnNumber()
Return the column number of the token that caused the exception.


getProductionNumber

public int getProductionNumber()
Return the production number of the token that caused the exception.