try {
result=design_file();
}
catch (ParseException e){
//convert the exception to a generic one
hdlParserException =new HdlParserException(e);
errs.Error("Parser cannot recover from previous error(s).", hdlParserException);
}
catch (TokenMgrError e){
hdlParserException =new HdlParserException(e);
errs.Error("Parser cannot recover from previous error(s).Unexpected character", hdlParserException);
}
catch (ThreadDeath e) {
hdlParserException =new HdlParserException(e);
errs.Error("Parser thread hanging...", hdlParserException);
}
}
}