summaryrefslogtreecommitdiffstats
path: root/node-admin
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@yahooinc.com>2023-04-14 11:26:36 +0200
committerValerij Fredriksen <valerijf@yahooinc.com>2023-04-14 11:26:36 +0200
commit7a55160c3941aaed5d4db173337b865bb45c3e7f (patch)
tree4e8ed122632f940901c1fe3d012ae4c543c527d6 /node-admin
parenta2d73b3942d48015a0e52fe1163e5e0c27aa2316 (diff)
Throw UncheckedIOException instead
Diffstat (limited to 'node-admin')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/network/IPAddressesImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/network/IPAddressesImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/network/IPAddressesImpl.java
index 1b5e6c57f5c..b7a1cb8a16e 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/network/IPAddressesImpl.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/network/IPAddressesImpl.java
@@ -1,6 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.task.util.network;
+import java.io.UncheckedIOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
@@ -14,7 +15,7 @@ public class IPAddressesImpl implements IPAddresses {
try {
return InetAddress.getAllByName(hostname);
} catch (UnknownHostException e) {
- throw new RuntimeException(e);
+ throw new UncheckedIOException(e);
}
}
}