/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Messenger/Exception/MessageDecodingFailedException.php
34 строки
947 B
Nicolas Grekas
[Messenger] Route decode failures through failure handling
24 фев 2026, 18:12
24 фев 2026, 18:12
37c7e90
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Messenger\Exception; use Symfony\Component\Messenger\Envelope; /** * Thrown when a message cannot be decoded in a serializer. */ class MessageDecodingFailedException extends InvalidArgumentException { public function __construct( string $message = '', int $code = 0, ?\Throwable $previous = null, public readonly array $encodedEnvelope = [], ) { parent::__construct($message, $code, $previous); } public static function wrap(array $encodedEnvelope, string $message, int $code = 0, ?\Throwable $previous = null): Envelope { return new Envelope(new self($message, $code, $previous, $encodedEnvelope)); } }