Final Class Yiisoft\Yii\Debug\Api\Debug\Exception\PackageNotInstalledException
| Inheritance | Yiisoft\Yii\Debug\Api\Debug\Exception\PackageNotInstalledException » Exception |
|---|---|
| Implements | Yiisoft\FriendlyException\FriendlyExceptionInterface |
Public Methods
Method Details
| 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);
}
| public string getName ( ) |
public function getName(): string
{
return sprintf(
'Package "%s" is not installed.',
$this->packageName,
);
}
| 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;
}
Signup or Login in order to comment.