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 __construct( string $packageName, string $message '', integer $code 0, Throwable|null $previous null ): mixed
$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 getName( ): string

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

            
getSolution() public method

public getSolution( ): string

                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;
}