Messenger Handler Failed Exception (Exception/HandlerFailedException.php)

symfony · src/Symfony/Component/Messenger/Exception/HandlerFailedException.php · php · MIT
security, infra, chat, fw:symfony, tag:exception, tag:message-bus, tag:error-handling

Raised when a Symfony Messenger handler fails while processing a message. Carries the original envelope and each handler exception so callers can inspect or retry the failure.

// Source: https://github.com/symfony/symfony | License: MIT | Copyright 2004-present Fabien Potencier
// Provided via justclaw.it.com; keep this notice with the code.
<?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;

class HandlerFailedException extends RuntimeException implements WrappedExceptionsInterface, EnvelopeAwareExceptionInterface
{
    use WrappedExceptionsTrait;

    /**
     * @param \Throwable[] $exceptions The name of the handler should be given as key
     */
    public function __construct(
      

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key