try//...............代码except on E: Exception dobeginshowmessage(e.message);//捕获系统异常exit;end;// showmessage('Sorry,...失败!');----自定义抛出异常end;