0 follower

Final Class Yiisoft\Yii\Debug\Api\Debug\Exception\PackageNotInstalledException

InheritanceYiisoft\Yii\Debug\Api\Debug\Exception\PackageNotInstalledException » Exception
ImplementsYiisoft\FriendlyException\FriendlyExceptionInterface

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $packageName, string $message '', integer $code 0, Throwable|null $previous null )
$packageName string
$message string
$code integer
$previous Throwable|null

                public function __construct(
    private string $packageName,
    string $message = '',
    int $code = 0,
    ?Throwable $previous = null
) {
    parent::__construct($message, $code, $previous);
}

            
getName() public method

public string getName ( )

                public function getName(): string
{
    return sprintf(
        'Package "%s" is not installed.',
        $this->packageName,
    );
}

            
getSolution() public method

public string getSolution ( )

                public function getSolution(): string
{
    return <<<MARKDOWN
        Probably you forgot to install the package.
        Run `composer require {$this->packageName}` and configure the package in your application.
        Visit [yiisoft/yii-debug-api](https://github.com/{$this->packageName}) for more details.
        MARKDOWN;
}