refactor: change log level and add exceptions

This commit is contained in:
Maël Gangloff
2025-10-13 13:51:51 +02:00
parent efa56055d0
commit 0af22ff989
36 changed files with 253 additions and 135 deletions

View File

@@ -4,8 +4,8 @@ namespace App\Exception;
class UnknownRdapServerException extends \Exception
{
public static function fromTld(string $tld): UnknownRdapServerException
public static function fromTld(string $tld): self
{
return new UnknownRdapServerException("TLD $tld: Unable to determine which RDAP server to contact");
return new self("TLD $tld: Unable to determine which RDAP server to contact");
}
}