Skip to content

Commit

Permalink
Annotate ExceptionDispatchInfo.Throw with StackTraceHidden (dotnet#38332
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jkotas authored Jun 25, 2020
1 parent a0014a0 commit 33f990f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void Throw()
// Throws the source exception, maintaining the original bucketing details and augmenting
// rather than replacing the original stack trace.
[DoesNotReturn]
[StackTraceHidden]
public static void Throw(Exception source) => Capture(source).Throw();

/// <summary>Stores the current stack trace into the specified <see cref="Exception"/> instance.</summary>
Expand Down

0 comments on commit 33f990f

Please sign in to comment.