Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove catch & (re-) throw in Raise #771

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Mar 5, 2019

Two reasons for this:

  1. It is one of the very few, if not the only, place where we do this "to keep Moq noise out" of the stack trace.

  2. An earlier refactor in InvokePreserveStack that switched to using ExceptionDispatchInfo already leads to cleaner stack traces than what we had previously. It's likely the "Moq noise" is at a tolerable level now. (If it weren't, we'd have to introduce the same re-throwing pattern in all other public APIs.

Resolves #738.

Two reasons for this:

 1. It is one of the very few, if not the only, place where we do this
    "to keep Moq noise out" of the stack trace.

 2. An earlier refactor in `InvokePreserveStack` that switched to
    using `ExceptionDispatchInfo` already leads to cleaner stack
    traces than what we had previously. It's likely the "Moq noise"
    is at a tolerable level now. (If it weren't, we'd have to intro-
    duce the same re-throwing pattern in all other public APIs.
@stakx stakx added this to the 4.11.0 milestone Mar 5, 2019
@stakx stakx merged commit bb41422 into devlooped:master Mar 5, 2019
@stakx stakx deleted the event-raise-stack-trace branch March 5, 2019 07:24
@devlooped devlooped locked and limited conversation to collaborators Sep 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant