C#App:异常处理 [英] C# App: Exception Handling

查看:64
本文介绍了C#App:异常处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


这是在方法中处理异常的正确方法吗?

Hi All,

Is it the right way of handling exception in a method?

展开 | 选择 | Wrap | 行号

推荐答案

对我来说这看起来非常可靠。
That looks like a pretty solid handling to me.


谢谢,但是当我调试应用程序时,文件得到了删除,但我没有看到msg显示文件已成功删除。
Thanks, But when i debug the application, the files get deleted but i dont see the msg showing Files successfully deleted.


你可以检查这是否使用日期时间对象正确编码
can you check if this is coded properly using date time object
展开 | 选择 | Wrap | 行号


这篇关于C#App:异常处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆