随笔分类 -  Exception处理

异常的处理 才是高手和菜鸟的分界线
异常处理原则
摘要:1.任何时候不能以任何理由 吃掉异常2.严格执行第一条 阅读全文

posted @ 2014-02-19 12:21 wensky 阅读(145) 评论(0) 推荐(0)

异常处理感悟1
摘要:现在写代码,最纠结的就是异常系的处理,感觉就像一团乱麻。看不清存在的价值有多大,说不出其存在意义,对是否应该抛出异常也无所适从,总之就是不懂。所谓书读百遍,其义自现。这句话的正确性是应该被肯定的。反正我相信~_~写的代码越来越多,异常的处理也是在糊里糊涂的写着。现在好像理解了一些,但又说不清。就像人生的价值一样,似乎存在但就是想不明白。悟道是靠机缘的,但殚精竭虑,动心忍性之后,不免有些体会。写出来便于以后回顾自己的成长历程,读来可能"呕哑嘲哳难为听",难免贻笑大方,但希望抛砖引玉,能有大神偶遇莅临,指导一二。下面是一些拙见:1.异常的处理如 抛出、抓取写日志 是为了项目的开 阅读全文

posted @ 2013-09-12 14:17 wensky 阅读(226) 评论(0) 推荐(0)

Exception Handling in 3-Tier Architecture 转载自:http://www.codeproject.com/Articles/85569/Exception-Handling-in-3-Tier-Architecture
摘要:IntroductionWe have been thinking of working on Exception handling in 3-Tier Architecture using Enterprise Library since ages but never got time or got into the situation where it should have become a requirement. Finally, we got a chance to work on it.Our main objective was to handle exceptions sea 阅读全文

posted @ 2012-07-13 08:23 wensky 阅读(291) 评论(0) 推荐(0)

导航