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";
}
}
|