Don't lose illegal argument classification
@@ -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,
