[Messenger] add handler description as array key to HandlerFailedException::getWrappedExceptions()#51331
Conversation
There was a problem hiding this comment.
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
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 <
8000
span class="Button-content">
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
HandlerFailedExceptionto see what exceptions were thrown for a message, you can't see what handler caused the exception.