Skip to content

Commit c445b16

Browse files
Jeroenyfabpot
authored andcommitted
[Messenger] Add WrappedExceptionsInterface for nested exceptions
1 parent 72e2c3e commit c445b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mailer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function send(RawMessage $message, Envelope $envelope = null): void
6565
try {
6666
$this->bus->dispatch(new SendEmailMessage($message, $envelope), $stamps);
6767
} catch (HandlerFailedException $e) {
68-
foreach ($e->getNestedExceptions() as $nested) {
68+
foreach ($e->getWrappedExceptions() as $nested) {
6969
if ($nested instanceof TransportExceptionInterface) {
7070
throw $nested;
7171
}

0 commit comments

Comments
 (0)