/** * 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; } }
/** * 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; } }