Files
nexus/src/App/ModuleConfigException.php
2026-03-04 23:42:00 +01:00

33 lines
648 B
PHP

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