mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
4650 add exception handling for executionexception when cache is unable to retrieve value
This commit is contained in:
parent
5b843dadc1
commit
c50fb57afd
@ -641,7 +641,7 @@ abstract class AbstractSqlEamDb implements EamDb {
|
|||||||
return dataSourceCacheByDsObjectId.get(getDataSourceByDSObjectIdCacheKey(
|
return dataSourceCacheByDsObjectId.get(getDataSourceByDSObjectIdCacheKey(
|
||||||
eamDataSource.getCaseID(), eamDataSource.getDataSourceObjectID()),
|
eamDataSource.getCaseID(), eamDataSource.getDataSourceObjectID()),
|
||||||
() -> getDataSourceFromCr(eamDataSource.getCaseID(), eamDataSource.getDataSourceObjectID()));
|
() -> getDataSourceFromCr(eamDataSource.getCaseID(), eamDataSource.getDataSourceObjectID()));
|
||||||
} catch (CacheLoader.InvalidCacheLoadException ex) {
|
} catch (CacheLoader.InvalidCacheLoadException | ExecutionException ex) {
|
||||||
throw new EamDbException(String.format("Unable to to INSERT or get data source %s in central repo", eamDataSource.getName()), ex);
|
throw new EamDbException(String.format("Unable to to INSERT or get data source %s in central repo", eamDataSource.getName()), ex);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user