mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: throw only if necessary
This commit is contained in:
@@ -165,13 +165,16 @@ final readonly class UpdateDomainHandler
|
||||
try {
|
||||
$this->RDAPService->registerDomain($ldhName);
|
||||
} catch (
|
||||
DomainNotFoundException|
|
||||
TldNotSupportedException|
|
||||
MalformedDomainException|
|
||||
UnknownRdapServerException
|
||||
$exception
|
||||
MalformedDomainException
|
||||
$exception
|
||||
) {
|
||||
throw new UnrecoverableMessageHandlingException($exception->getMessage(), 0, $exception);
|
||||
} catch (
|
||||
UnknownRdapServerException|
|
||||
DomainNotFoundException
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user