首页 > 其他 > 详细

出错提示

时间:2014-07-09 14:00:01      阅读:260      评论:0      收藏:0      [点我收藏+]

 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

出错提示

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!