class ParseException extends SLException implements TokenTypes {
  private String msg;

  public ParseException(int line, String msg_) { 
    msg = "Parser error: On line "+(new Integer(line)).toString()+", "+msg_;
  }

  public ParseException(int line, int expectedType) { 
    String expectedLexeme= reservedLexemes[expectedType];
    msg = "Parser error: Expected "+expectedLexeme+
      " on line "+(new Integer(line)).toString();
  }
  
  public String getMessage() { return msg; } 
}

