Files
domain-watchdog/src/Exception/MalformedDomainException.php

12 lines
221 B
PHP
Raw Normal View History

2025-10-07 15:55:17 +02:00
<?php
namespace App\Exception;
class MalformedDomainException extends \Exception
{
public static function fromDomain(string $ldhName): self
2025-10-07 15:55:17 +02:00
{
2025-10-16 14:16:58 +02:00
return new self("Malformed domain name ($ldhName)");
2025-10-07 15:55:17 +02:00
}
}