mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
refactor: change log level and add exceptions
This commit is contained in:
@@ -4,8 +4,8 @@ namespace App\Exception;
|
||||
|
||||
class DomainNotFoundException extends \Exception
|
||||
{
|
||||
public static function fromDomain(string $ldhName): DomainNotFoundException
|
||||
public static function fromDomain(string $ldhName): self
|
||||
{
|
||||
return new DomainNotFoundException("The domain name $ldhName is not present in the WHOIS database");
|
||||
return new self("The domain name $ldhName is not present in the WHOIS database");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user