diff options
author | Øyvind Grønnesby <oyving@verizonmedia.com> | 2019-06-06 13:20:31 +0200 |
---|---|---|
committer | Øyvind Grønnesby <oyving@verizonmedia.com> | 2019-06-06 13:20:31 +0200 |
commit | 5d0752bdd18f8a893d6ea076b723242d8e118541 (patch) | |
tree | 82541db0d72a1e402917d4ad39c2f47fc9d37444 /configserver | |
parent | 48aa602678b541ce52e28bd06b37ff89ff84fc98 (diff) |
Use UncheckedIOException instead of RuntimeException
Diffstat (limited to 'configserver')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/tenant/RotationsCache.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/RotationsCache.java b/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/RotationsCache.java index a4f2eacd02b..38d990da248 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/RotationsCache.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/RotationsCache.java @@ -10,6 +10,7 @@ import com.yahoo.vespa.config.SlimeUtils; import com.yahoo.vespa.curator.Curator; import java.io.IOException; +import java.io.UncheckedIOException; import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -52,7 +53,7 @@ public class RotationsCache { SlimeUtils.toJsonBytes(entryToSlime(assignments)) ); } catch (IOException e) { - throw new RuntimeException("Error writing rotations of: " + applicationId, e); + throw new UncheckedIOException("Error writing rotations of: " + applicationId, e); } } |