CoreFiles by mySites.guru
RunCommandFailedException.php29 lines, 849 bytes, from Joomla_6.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 6.0.0-beta3
md5
36fe2d657cd979cd2ad3e1970fc055f9
sha1
a8ce14ec5acf24bc653fdc0bf1ccb012a8b7ec3a
sha256
04c78f9834b25af5b98255415b72c7864b633d5e483e9929489e4906f949ceab
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Exception;

use Symfony\Component\Console\Messenger\RunCommandContext;

/**
 * @author Kevin Bond <[email protected]>
 */
final class RunCommandFailedException extends RuntimeException
{
    public function __construct(\Throwable|string $exception, public readonly RunCommandContext $context)
    {
        parent::__construct(
            $exception instanceof \Throwable ? $exception->getMessage() : $exception,
            $exception instanceof \Throwable ? $exception->getCode() : 0,
            $exception instanceof \Throwable ? $exception : null,
        );
    }
}

The same content is in 106 releases, Joomla 5.1.0-beta1 to 6.1.0-beta1. See them all, or every version of this file.