File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,17 @@ Here are some important envelope stamps that are shipped with the Symfony Messen
161
161
#. :class: `Symfony\\ Component\\ Messenger\\ Stamp\\ ErrorDetailsStamp `,
162
162
an internal stamp when a message fails due to an exception in the handler.
163
163
164
+ .. note ::
165
+
166
+ The :class: `Symfony\\ Component\\ Messenger\\ Stamp\\ ErrorDetailsStamp ` stamp
167
+ contains a :class: `Symfony\\ Component\\ ErrorHandler\\ Exception\\ FlattenException `,
168
+ which is a representation of the exception that made the message fail. You can
169
+ get this exception with the
170
+ :method: `Symfony\\ Component\\ Messenger\\ Stamp\\ ErrorDetailsStamp::getFlattenException `
171
+ method. This exception is normalized thanks to the
172
+ :class: `Symfony\\ Component\\ Messenger\\ Transport\\ Serialization\\ Normalizer\\ FlattenExceptionNormalizer `
173
+ which helps error reporting in the Messenger context.
174
+
164
175
Instead of dealing directly with the messages in the middleware you receive the envelope.
165
176
Hence you can inspect the envelope content and its stamps, or add any::
166
177
You can’t perform that action at this time.
0 commit comments