package parser;
/**
* Exception thrown when unbalanced parentheses were detected by the parser.
*
* @author Bryan J. Higgs
*/
public class UnbalancedParenthesesException extends ParserException
{
/**
* Constructor
*/
public UnbalancedParenthesesException(String line, int offset)
{
super(line, offset);
}
/**
* Gets the message for the exception
* (implementation of abstract method)
*/
public String getMessage()
{
return "Unbalanced parentheses";
}
}
|