try { 寫要執行的代碼; return "操作成功"; } catch (exception e) { e.printstacktrace(); # 這個是把具體的錯誤列印出來 return "操作失敗" }