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

 

 

package parser;

/**
 * Exception thrown when a division by zero was detected by the parser.
 *
 * @author Bryan J. Higgs
 */
public class DivisionByZeroException extends ParserException
{
  /**
   * Constructor
   */
  public DivisionByZeroException(String line, int offset)
  {
    super(line, offset);
  }

  /**
   * Gets the message for the exception
   * (implementation of abstract method)
   */
  public String getMessage()
  {
    return "Division by zero attempted";
  }
}
The page was last updated February 19, 2008