mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
DS-4166 community feedback: use a more appropriate exception
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user