philzhou

导航

.NET Exception Handling

image

 

 

Note: It is very important to just use the throw statement, rather than throw ex. If you have "throw ex", then the stack trace of the exception will be replaced with a stack trace starting at the re-throw point, which is usually not the desired effect.

posted on 2012-10-16 11:43  philzhou  阅读(289)  评论(0编辑  收藏  举报