mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
27 lines
585 B
PHP
Executable File
27 lines
585 B
PHP
Executable File
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\PackageManager\Exception;
|
|
|
|
use Exception;
|
|
use Flarum\Foundation\KnownError;
|
|
|
|
class ExtensionNotInstalledException extends Exception implements KnownError
|
|
{
|
|
public function __construct(string $extensionId)
|
|
{
|
|
parent::__construct("Extension {$extensionId} is not installed.");
|
|
}
|
|
|
|
public function getType(): string
|
|
{
|
|
return 'extension_not_installed';
|
|
}
|
|
}
|