gov.llnl.babel.parsers.sidl
Class SymbolException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--gov.llnl.babel.parsers.sidl.SIDLException
|
+--gov.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 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 |
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.
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.
- Overrides:
getMessage
in class java.lang.Throwable