CoreFiles by mySites.guru
RunCommandFailedException.php29 lines, 883 bytes, from Joomla_6.2.1-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 6.2.0-rc2
md5
ebc89eee39c2856137c509025762d2d9
sha1
8ecdd5f8bcffd27ab0d92c4f6d049c1ee21fec8a
sha256
eccfc713381fb12aacfd1ecbb867ce9e4a855d9baf7876376341706c21cf6074
<?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 && \is_int($exception->getCode()) ? $exception->getCode() : 0,
            $exception instanceof \Throwable ? $exception : null,
        );
    }
}

The same content is in 27 releases, Joomla 6.1.0-beta2 to 6.2.1-rc1. See them all, or every version of this file.