mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Catch the exception you get when you try to read from a cache with an invalid state, and re-throw a more helpful error message
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19127 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -88,6 +88,13 @@ public class EhCacheAdapter<K extends Serializable, V extends Object>
|
||||
return null;
|
||||
}
|
||||
}
|
||||
catch (IllegalStateException ie)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Failed to get from EhCache as state invalid: \n" +
|
||||
" state: " + cache.getStatus() + "\n" +
|
||||
" key: " + key,
|
||||
ie);
|
||||
}
|
||||
catch (CacheException e)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Failed to get from EhCache: \n" +
|
||||
|
Reference in New Issue
Block a user