Rethrowing an Inner exception in C#
... while maintaining its stack trace:
ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
Rethrowing an Inner exception in C#
... while maintaining its stack trace:
ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
Comments
Post a Comment