mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +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;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new RuntimeException("No type known: " + type);
|
throw new IllegalArgumentException("No type known: " + type);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getSolr() != null) {
|
if (getSolr() != null) {
|
||||||
|
Reference in New Issue
Block a user