Skip to content

Commit 93e5dac

Browse files
Jeroenyfabpot
authored andcommitted
[Messenger] Add WrappedExceptionsInterface for nested exceptions
1 parent fb7ebea commit 93e5dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Messenger/DoctrineTransactionMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function handleForManager(EntityManagerInterface $entityManager, Envel
3939
if ($exception instanceof HandlerFailedException) {
4040
// Remove all HandledStamp from the envelope so the retry will execute all handlers again.
4141
// When a handler fails, the queries of allegedly successful previous handlers just got rolled back.
42-
throw new HandlerFailedException($exception->getEnvelope()->withoutAll(HandledStamp::class), $exception->getNestedExceptions());
42+
throw new HandlerFailedException($exception->getEnvelope()->withoutAll(HandledStamp::class), $exception->getWrappedExceptions());
4343
}
4444

4545
throw $exception;

0 commit comments

Comments
 (0)