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

 

 

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

}
The page was last updated February 19, 2008