feat: throw only if necessary

This commit is contained in:
Maël Gangloff
2025-11-03 22:06:00 +01:00
parent de76209665
commit a14e6efb7c
2 changed files with 10 additions and 6 deletions

View File

@@ -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;
}
}
}