-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] add handler description as array key to HandlerFailedException::getWrappedExceptions()
#51331
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be tested somehow?
src/Symfony/Component/Messenger/Exception/HandlerFailedException.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/Exception/HandlerFailedException.php
Outdated
Show resolved
Hide resolved
97e3fea
to
61a5a06
Compare
Test added. |
src/Symfony/Component/Messenger/Tests/Middleware/HandleMessageMiddlewareTest.php
Outdated
Show resolved
Hide resolved
Should be rebased (see #51653) |
61a5a06
to
84abc0d
Compare
Rebased. |
3e34ef0
to
7c7fb54
Compare
Psalm errors fixed. |
src/Symfony/Component/Messenger/Tests/Exception/HandlerFailedExceptionTest.php
Outdated
Show resolved
Hide resolved
7c7fb54
to
c2650c1
Compare
What about reverting the changes made to the now deprecated |
You mean throw an Another thing, it would be nice if |
It's probably not a big deal here but yes, we usually avoid changing deprecated code paths.
I think it would be possible to use |
c2650c1
to
5e7bb97
Compare
@chalasr, I've made this change.
I'm going to leave this off of this PR because of the possible edge cases you describe. This can be revisited later if desired. |
5e7bb97
to
06a697c
Compare
src/Symfony/Component/Messenger/Exception/WrappedExceptionsInterface.php
Outdated
Show resolved
Hide resolved
06a697c
to
dcc788d
Compare
src/Symfony/Component/Messenger/Exception/HandlerFailedException.php
Outdated
Show resolved
Hide resolved
dcc788d
to
9e67f29
Compare
HandlerFailedException::getNestedExceptions()
HandlerFailedException::getWrappedExceptions()
src/Symfony/Component/Messenger/Exception/HandlerFailedException.php
Outdated
Show resolved
Hide resolved
…eption::getWrappedExceptions()`
5be2a1e
to
275c3af
Compare
Thank you @kbond. |
Currently, when looking at
HandlerFailedException
to see what exceptions were thrown for a message, you can't see what handler caused the exception.