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
If you throw a new exception with the initial exception you will preserve the initial stack trace too..
try{ } catch(Exception ex){ throw new MoreDescriptiveException("here is what was happening", ex); }