edu.iu.cnets.klatsch.exception
Class TokenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.iu.cnets.klatsch.exception.KlatschException
edu.iu.cnets.klatsch.exception.TokenException
- All Implemented Interfaces:
- java.io.Serializable
public class TokenException
- extends KlatschException
This class supports exception handling for problems at the tokenization level.
Tokenization problems don't make it all the way to the user in isolation; they're caught
by the Parser
and used as annotations for a ParserException
that contains
a higher-level description of the error.
- See Also:
- Serialized Form
Field Summary |
(package private) java.lang.String |
message
the error message |
private static long |
serialVersionUID
make Eclipse happy |
Constructor Summary |
TokenException(java.lang.String message)
Initialize given an error message to relay to the user. |
Method Summary |
java.lang.String |
toString()
Converts the exception to a printable form. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- make Eclipse happy
- See Also:
- Constant Field Values
message
java.lang.String message
- the error message
TokenException
public TokenException(java.lang.String message)
- Initialize given an error message to relay to the user.
- Parameters:
message
- the error message
toString
public java.lang.String toString()
- Converts the exception to a printable form.
- Overrides:
toString
in class java.lang.Throwable
- Returns:
- the error message