.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.

原文地址:https://www.cnblogs.com/philzhou/p/2725711.html