.NET Exception Handling

.NET Exception Handling_第1张图片

 

 

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.

你可能感兴趣的:(exception)