module change
This commit is contained in:
32
src/App/ModuleConfigException.php
Normal file
32
src/App/ModuleConfigException.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App;
|
||||
|
||||
final class ModuleConfigException extends \RuntimeException
|
||||
{
|
||||
private string $module;
|
||||
private ?string $details;
|
||||
|
||||
public function __construct(
|
||||
string $module,
|
||||
string $message,
|
||||
?string $details = null,
|
||||
int $code = 0,
|
||||
?\Throwable $previous = null
|
||||
) {
|
||||
parent::__construct($message, $code, $previous);
|
||||
$this->module = $module;
|
||||
$this->details = $details;
|
||||
}
|
||||
|
||||
public function module(): string
|
||||
{
|
||||
return $this->module;
|
||||
}
|
||||
|
||||
public function details(): ?string
|
||||
{
|
||||
return $this->details;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user