如果需要向用户提示try{}catch(Exception ex){ MessageBox.Show(ex.ToString());}如果需要向外层抛出try{}catch(Exception ex){ throw ex;}如果需要写日志try{}catch(Exception ex){ Loger.Write(DateTime.Now.ToString() + ex.ToString());//Loger为自定义的日志类实例}