You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the exception is cached and throw; is not applicable, another technique is needed to preserve the original exception's context. Storing it as an InnerException is one way, but I think in this case, it's more useful to rethrow it without changing its context:
ExceptionDispatchInfo.Capture(ex).Throw();
A pull request is on the way.
The text was updated successfully, but these errors were encountered:
lefth
pushed a commit
to lefth/Unity3dAsyncAwaitUtil
that referenced
this issue
Apr 12, 2018
When the exception is cached and
throw;
is not applicable, another technique is needed to preserve the original exception's context. Storing it as anInnerException
is one way, but I think in this case, it's more useful to rethrow it without changing its context:A pull request is on the way.
The text was updated successfully, but these errors were encountered: