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
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Program.<<Main>$>g__ThrowSomeException|0_0()
at Program.<<Main>$>g__ExceptionDispatchInfoExample|0_1()
--- End of stack trace from previous location ---
at Program.<<Main>$>g__ExceptionDispatchInfoExample|0_1()
This approach is used in async-await
The text was updated successfully, but these errors were encountered:
Current implementation with
BubbleExceptionContainer
have issue of changing original stacktrace.Consider following code. Semantically it's identical to current behavior - if exception is throw, store it to some field and throw it elsewhere.
Result of invoking
StoreAndThrowExample
isNotice that original source is not listed in stacktrace.
Now look at this method that uses
ExceptionDispatchInfo
:which produces following stacktrace:
This approach is used in async-await
The text was updated successfully, but these errors were encountered: