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

HandlerFailedException could wrap multiple exceptions #338

Closed
Jean85 opened this issue May 6, 2020 · 0 comments · Fixed by #340
Closed

HandlerFailedException could wrap multiple exceptions #338

Jean85 opened this issue May 6, 2020 · 0 comments · Fixed by #340
Milestone

Comments

@Jean85
Copy link
Collaborator

Jean85 commented May 6, 2020

As pointed out by @B-Galati and following comments here, the Symfony Messenger could have multiple synchronous handlers for the same message. If multiple handlers fail in this case, the resulting single HandlerFailedException would wrap all the raised exceptions.

To fix this, we probably have to iterate over $error->getNestedExceptions() and capture them all.

@Jean85 Jean85 added this to the 3.5 milestone May 6, 2020
@Jean85 Jean85 linked a pull request May 7, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant