HandlerFailedException example



/** * @internal */
#[Package('command')] class TestNestedCommand extends Command
{
    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        $testCause = new TestCause();
        $testCause->throw(new HandlerFailedException(new Envelope(new \stdClass())[new TestException('test')]));

        return Command::SUCCESS;
    }
}

/** * @internal */
#[Package('cause')] class TestCause extends Command
{
    
Home | Imprint | This part of the site doesn't use cookies.