for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gacela\Framework\Exception;
use RuntimeException;
final class ConfigException extends RuntimeException
{
public static function configDirNotFound(string $rootDir): self
throw new self(sprintf(
'"config" directory not found in %s directory',
$rootDir
));
}
public static function keyNotFound(string $key, string $class): self
return new self(sprintf(
'Could not find config key "%s" in "%s"',
$key,
$class