码迷,mamicode.com
首页 > 其他好文 > 详细

出错提示

时间:2014-07-09 13:59:42      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:des   os   问题   io   app   ar   

 try
            {
                psv.SetPlotConfigurationName(ps, cOre, null);
            }
            catch (SystemException ex)
            {
                ed.WriteMessage("\n错误行开始:");
                ed.WriteMessage("\n错误状态:" + ex.InnerException.ToString());
                ed.WriteMessage("\n异常消息:" + ex.Message.ToString());
                ed.WriteMessage("\nSource:" + ex.Source.ToString());
                ed.WriteMessage("\nStackTrace:" + ex.StackTrace.ToString());//包含出错语句和出错行
                ed.WriteMessage("\nTargetSite:" + ex.TargetSite.ToString());
                AcadApp.ShowAlertDialog("由于AutoCAD语言问题产生了错误,请将出错信息从命令行中复制并发送给程序开发人员!");
                this.Close();
                return;
            }
            catch (Autodesk.AutoCAD.Runtime.Exception exx)
            {
                ed.WriteMessage("\n错误行开始:");
                ed.WriteMessage("\n异常消息:" + exx.Message.ToString());
                ed.WriteMessage("\nSource:" + exx.Source.ToString());
                ed.WriteMessage("\nStackTrace:" + exx.StackTrace.ToString());
                AcadApp.ShowAlertDialog("由于AutoCAD语言问题产生了错误,请将出错信息从命令行中复制并发送给程序开发人员!");
                this.Close();
                return;
            }

出错提示,布布扣,bubuko.com

出错提示

标签:des   os   问题   io   app   ar   

原文地址:http://www.cnblogs.com/swtool/p/3832382.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!