/** * Creates a new {@code CacheLoadingException} with the provided exception as cause. * * @param e the cause * @return a cache loading exception */ public static CacheLoadingException newCacheLoadingException(Exception e) { return new CacheLoadingException(e); }
/** * Creates a new {@code CacheLoadingException} with the provided exception as cause and a suppressed one. * * @param e the cause * @param suppressed the suppressed exception to add to the new exception * @return a cache loading exception */ public static CacheLoadingException newCacheLoadingException(Exception e, Exception suppressed) { CacheLoadingException ne = new CacheLoadingException(e); ne.addSuppressed(e); return ne; } }
value = cacheLoaderWriter.load(key); } catch (Exception e) { throw new StorePassThroughException(new CacheLoadingException(e));
/** * Creates a new {@code CacheLoadingException} with the provided exception as cause. * * @param e the cause * @return a cache loading exception */ public static CacheLoadingException newCacheLoadingException(Exception e) { return new CacheLoadingException(e); }
/** * Creates a new {@code CacheLoadingException} with the provided exception as cause and a suppressed one. * * @param e the cause * @param suppressed the suppressed exception to add to the new exception * @return a cache loading exception */ public static CacheLoadingException newCacheLoadingException(Exception e, Exception suppressed) { CacheLoadingException ne = new CacheLoadingException(e); ne.addSuppressed(e); return ne; } }
return null; } catch (Exception e) { throw new CacheLoadingException(e); } finally { try {