DS-4166 community feedback: use a more appropriate exception

This commit is contained in:
Andrea Bollini
2019-03-28 15:38:39 +01:00
parent 8de7a50f5b
commit 5e3164bd06

View File

@@ -499,7 +499,7 @@ public class SolrServiceImpl implements SearchService, IndexingService {
}
break;
default:
throw new RuntimeException("No type known: " + type);
throw new IllegalArgumentException("No type known: " + type);
}
if (getSolr() != null) {