This commit is contained in:
crazywhalecc
2025-11-30 15:35:04 +08:00
parent f6c818d3c0
commit 14bfb4198a
179 changed files with 19502 additions and 655 deletions

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace StaticPHP\Exception;
/**
* EnvironmentException is thrown when there is an issue with the environment setup,
* such as missing dependencies or incorrect configurations.
*/
class EnvironmentException extends SPCException
{
public function __construct(string $message, private readonly ?string $solution = null)
{
parent::__construct($message);
}
/**
* Returns the solution for the environment issue.
*/
public function getSolution(): ?string
{
return $this->solution;
}
}