Version 5.0.0 beta 1

This commit is contained in:
Neo committed 2025-12-19 16:27:35 -08:00
1 parent 25ddeb65d6
commit 15c7beabc5
6736 files changed
+627902 -497943

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace Pdp;
use InvalidArgumentException;
use Throwable;
final class UnableToLoadTopLevelDomainList extends InvalidArgumentException implements CannotProcessHost
{
public static function dueToInvalidTopLevelDomain(string $content, ?Throwable $exception = null): self
{
return new self('Invalid Top Level Domain: '.$content, 0, $exception);
}
public static function dueToInvalidVersionLine(string $line): self
{
return new self('Invalid Version line: '.$line);
}
public static function dueToFailedConversion(): self
{
return new self('Invalid content: Top Level Domain List conversion failed.');
}
public static function dueToInvalidLine(string $line): self
{
return new self('Invalid line content: '.$line);
}
}