/** * Creates a new {@code CacheWritingException} 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 writing exception */ public static CacheWritingException newCacheWritingException(Exception e, Exception suppressed) { CacheWritingException ne = new CacheWritingException(e); ne.addSuppressed(suppressed); return ne; }
/** * Creates a new {@code CacheWritingException} 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 writing exception */ public static CacheWritingException newCacheWritingException(Exception e, Exception suppressed) { CacheWritingException ne = new CacheWritingException(e); ne.addSuppressed(suppressed); return ne; }