What are the best practices to consider when catching exceptions and re-throwing them? I want to make sure that the Exception object\'s InnerException
Exception
InnerException
When you throw ex, you're essentially throwing a new exception, and will miss out on the original stack trace information. throw is the preferred method.
throw ex
throw