Try…Catch使用小结
摘要:
1. 不要滥用Try…Catch。
2. 为了使用Finally来保证资源的释放。
3. 为了保证函数有统一的出口。
4. 为了区分程序错误与逻辑错误,需要自定义一个Exception类型。 阅读全文
posted @ 2008-11-23 18:34 spacer_robot 阅读(4775) 评论(0) 推荐(0) 编辑
posted @ 2008-11-23 18:34 spacer_robot 阅读(4775) 评论(0) 推荐(0) 编辑
posted @ 2008-11-23 17:34 spacer_robot 阅读(1095) 评论(2) 推荐(0) 编辑