aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/schema/derived/RankProfileList.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-11-28 09:31:01 +0100
committerJon Bratseth <bratseth@gmail.com>2022-11-28 09:31:01 +0100
commita54d30dd215695d6414332081c1f8076720595fb (patch)
treeee3c1d369d4e4d770f0cd1cb1d396b3dc3364cfc /config-model/src/main/java/com/yahoo/schema/derived/RankProfileList.java
parent22ba7380e8da6217fae038493dec7d049a347cbf (diff)
Don't lose illegal argument classification
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/derived/RankProfileList.java')
-rw-r--r--config-model/src/main/java/com/yahoo/schema/derived/RankProfileList.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/derived/RankProfileList.java b/config-model/src/main/java/com/yahoo/schema/derived/RankProfileList.java
index 27e6d6e57a6..c254385a96e 100644
--- a/config-model/src/main/java/com/yahoo/schema/derived/RankProfileList.java
+++ b/config-model/src/main/java/com/yahoo/schema/derived/RankProfileList.java
@@ -123,9 +123,13 @@ public class RankProfileList extends Derived implements RankProfilesConfig.Produ
rawRankProfiles.put(rawRank.getName(), rawRank);
}
return rawRankProfiles;
- } catch (InterruptedException | ExecutionException e) {
+ } catch (InterruptedException e) {
throw new IllegalStateException(e);
}
+ catch (ExecutionException e) {
+ throw e.getCause() instanceof IllegalArgumentException ? (IllegalArgumentException)e.getCause()
+ : new IllegalStateException(e);
+ }
}
private static FileDistributedConstants deriveFileDistributedConstants(Schema schema,