diff --git a/java/google/registry/flows/host/HostFlowUtils.java b/java/google/registry/flows/host/HostFlowUtils.java index 1a8e5c9a4..b6cd975e1 100644 --- a/java/google/registry/flows/host/HostFlowUtils.java +++ b/java/google/registry/flows/host/HostFlowUtils.java @@ -134,16 +134,15 @@ public class HostFlowUtils { DomainResource superordinateDomain) throws EppException { if ((superordinateDomain != null) && superordinateDomain.getStatusValues().contains(StatusValue.PENDING_DELETE)) { - throw new SuperordinateDomainInPendingDeleteException( - superordinateDomain.getFullyQualifiedDomainName()); + throw new SuperordinateDomainInPendingDeleteException(); } } /** Superordinate domain for this hostname is in pending delete. */ static class SuperordinateDomainInPendingDeleteException extends StatusProhibitsOperationException { - public SuperordinateDomainInPendingDeleteException(String domainName) { - super(domainName); + public SuperordinateDomainInPendingDeleteException() { + super("Superordinate domain for this hostname is in pending delete"); } } diff --git a/javatests/google/registry/flows/host/HostCreateFlowTest.java b/javatests/google/registry/flows/host/HostCreateFlowTest.java index f63134294..c187182bb 100644 --- a/javatests/google/registry/flows/host/HostCreateFlowTest.java +++ b/javatests/google/registry/flows/host/HostCreateFlowTest.java @@ -184,7 +184,7 @@ public class HostCreateFlowTest extends ResourceFlowTestCase