package rebelsky.compiler.lexer; /** * Exceptions that are thrown during the tokenizing (lexical analysis) * phase in a compiler. * * @author Samuel A. Rebelsky * @version 1.0 of October 2002 */ public class TokenException extends Exception { // +--------------+------------------------------------------------- // | Constructors | // +--------------+ /** * Create a new exception that includes a description of the * reason for the exception. The preferred constructor for * this class. */ public TokenException(String reason) { super(reason); } // TokenException(String) /** * Create a new exception without a description of the reason * for the exception. */ public TokenException() { super(); } // TokenException() } // class TokenException