ParserNumberFormatException
Home ] Up ] ParserException ] DivisionByZeroException ] ParserIOException ] [ ParserNumberFormatException ] UnbalancedParenthesesException ] UnexpectedExtraTokenException ] UnexpectedTokenFoundException ] UnsupportedFeatureException ]

 

 

package parser;

/**
 * Class to represent a NumberFormatException that occurred
 * during parsing.
 *
 * @author Bryan J. Higgs
 */
public class ParserNumberFormatException extends ParserException
{
  public ParserNumberFormatException(Token token, String line, 
                                     NumberFormatException nfe)
  {
    super(line, token.getOffset());
    m_token = token;
    m_nfe = nfe;
  }

  @Override
  public String getMessage()
  {
    return "A NumberFormatException occurred during parsing";
  }

  /// Private data ///
  private Token m_token;
  private NumberFormatException m_nfe;
}
The page was last updated February 19, 2008