module change

This commit is contained in:
2026-03-04 23:42:00 +01:00
parent 32d4082bf8
commit 7d73c570c9
4 changed files with 99 additions and 19 deletions

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