From 052071e8331ffae8bae7ae649f244a6cf8cd6082 Mon Sep 17 00:00:00 2001 From: Antoine Makdessi Date: Wed, 16 Mar 2022 17:46:40 +0100 Subject: [PATCH] Reference the internal ErrorDetailsStamp Close https://github.com/symfony/symfony-docs/issues/14319 --- components/messenger.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/messenger.rst b/components/messenger.rst index 2e853f69ab6..99946b72b7e 100644 --- a/components/messenger.rst +++ b/components/messenger.rst @@ -162,6 +162,8 @@ Here are some important envelope stamps that are shipped with the Symfony Messen to configure the serialization groups used by the transport. #. :class:`Symfony\\Component\\Messenger\\Stamp\\ValidationStamp`, to configure the validation groups used when the validation middleware is enabled. +#. :class:`Symfony\\Component\\Messenger\\Stamp\\ErrorDetailsStamp`, + an internal stamp when a messages fails due to an exception in the handler. Instead of dealing directly with the messages in the middleware you receive the envelope. Hence you can inspect the envelope content and its stamps, or add any::