gov.llnl.babel.parsers.sidl
Class SymbolException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bygov.llnl.babel.parsers.sidl.SIDLException
              extended bygov.llnl.babel.parsers.sidl.SymbolException
All Implemented Interfaces:
java.io.Serializable

public class SymbolException
extends SIDLException

A SymbolException is thrown if the specified symbol cannot be found or if there is a symbol name conflict (e.g., a redefinition of a symbol or a misuse).

See Also:
Serialized Form

Constructor Summary
SymbolException(Token token, int production, java.lang.String message)
          Create a new exception object using the specified token, production, and message.
 
Method Summary
 java.lang.String getMessage()
          Generate an error message corresponding to this exception.
 
Methods inherited from class gov.llnl.babel.parsers.sidl.SIDLException
getColumnNumber, getLineNumber, getProductionNumber
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

SymbolException

public SymbolException(Token token,
                       int production,
                       java.lang.String message)
Create a new exception object using the specified token, production, and message. Initialize the base class with the location of the error and the production number.

Method Detail

getMessage

public java.lang.String getMessage()
Generate an error message corresponding to this exception. The error message will report the line number, column number, production, and message.