mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Updare for Exception handling
Update for exception handling.
This commit is contained in:
parent
bfb1bbe121
commit
e9229a20fc
@ -1277,7 +1277,7 @@ public class Server {
|
||||
*
|
||||
* @throws NoOpenCoreException
|
||||
*/
|
||||
private void deleteDataSource(Long dataSourceId) throws SolrServerException, KeywordSearchModuleException, NoOpenCoreException, IOException {
|
||||
public void deleteDataSource(Long dataSourceId) throws SolrServerException, KeywordSearchModuleException, NoOpenCoreException, IOException {
|
||||
currentCoreLock.writeLock().lock();
|
||||
if (null == currentCore) {
|
||||
throw new NoOpenCoreException();
|
||||
|
@ -208,7 +208,7 @@ public class SolrSearchService implements KeywordSearchService, AutopsyService {
|
||||
public void deleteDataSource(Long dataSourceId) throws KeywordSearchServiceException {
|
||||
try {
|
||||
KeywordSearch.getServer().deleteDataSource(dataSourceId);
|
||||
} catch (NoOpenCoreException | KeywordSearchModuleException ex) {
|
||||
} catch (NoOpenCoreException | KeywordSearchModuleException | SolrServerException | IOException ex) {
|
||||
throw new KeywordSearchServiceException(NbBundle.getMessage(SolrSearchService.class,
|
||||
"SolrSearchService.deleteDataSource.exceptionMessage.noCurrentSolrCore"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user