Welcome to MSDN Blogs Sign in | Join | Help

March 2008 - Posts

Handling, throwing - exceptions and Clean up on error

There are four ways to throw an exception in my opinion. They are: 1. Throw a new exception a. throw new ArgumentException( … ); 2. Throw the exception you caught a. throw e; 3. Throw the same exception preserving the stack a. throw; 4. Throw with the
 
Page view tracker