-
Notifications
You must be signed in to change notification settings - Fork 652
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
Exception detail in header is lost if handler throws an AggregateException #2365
Comments
@andreasohlund here is one to ruin your lunch |
This is actually a bit more different then just the highlighted code in the description. So there are 2 sides to this scenario.
In scenario 1, yes we are unwrapping the In scenario 2, an the original Scenario 1 could be remedied with a know issue section in the release notes? |
perhaps but we are loosing the stack trace and the message. I dont think documenting this as a known bug is enough |
I'm pretty sure we are not losing the message ( |
fixed in d414f49 |
When a Handler throws an
AggregateException
.TransportReceiver
does aGetBaseException
Which will unwrap the
AggregateException
converting it to the instance ofException("My Inner Exception");
. And henceException("My Inner Exception");
will be passed toIManageMessageFailures
instead of the correctAggregateException("My Exception", exception);
Note that we also do the same thing (
ex = ex.GetBaseException();
) again inFirstLevelRetries
so it needs to be fixed in two locationsThe text was updated successfully, but these errors were encountered: