mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
12 lines
281 B
PHP
12 lines
281 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Exception;
|
||
|
|
|
||
|
|
class MalformedDomainException extends \Exception
|
||
|
|
{
|
||
|
|
public static function fromDomain(string $ldhName): MalformedDomainException
|
||
|
|
{
|
||
|
|
return new MalformedDomainException("Domain name ($ldhName) must contain at least one dot");
|
||
|
|
}
|
||
|
|
}
|