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

12 lines
249 B
PHP
Raw Normal View History

2025-10-07 15:55:17 +02:00
<?php
namespace App\Exception;
class DomainNotFoundException extends \Exception
{
public static function fromDomain(string $ldhName): self
2025-10-07 15:55:17 +02:00
{
return new self("The domain name $ldhName is not present in the WHOIS database");
2025-10-07 15:55:17 +02:00
}
}