public final class ExceptionFactory
extends java.lang.Object
CacheLoadingException
and CacheWritingException
.Modifier and Type | Method and Description |
---|---|
static CacheLoadingException |
newCacheLoadingException(java.lang.Exception e)
Creates a new
CacheLoadingException with the provided exception as cause. |
static CacheLoadingException |
newCacheLoadingException(java.lang.Exception e,
java.lang.Exception suppressed)
Creates a new
CacheLoadingException with the provided exception as cause and a suppressed one. |
static CacheWritingException |
newCacheWritingException(java.lang.Exception e)
Creates a new
CacheWritingException with the provided exception as cause. |
static CacheWritingException |
newCacheWritingException(java.lang.Exception e,
java.lang.Exception suppressed)
Creates a new
CacheWritingException with the provided exception as cause and a suppressed one. |
public static CacheWritingException newCacheWritingException(java.lang.Exception e)
CacheWritingException
with the provided exception as cause.e
- the causepublic static CacheLoadingException newCacheLoadingException(java.lang.Exception e)
CacheLoadingException
with the provided exception as cause.e
- the causepublic static CacheWritingException newCacheWritingException(java.lang.Exception e, java.lang.Exception suppressed)
CacheWritingException
with the provided exception as cause and a suppressed one.e
- the causesuppressed
- the suppressed exception to add to the new exceptionpublic static CacheLoadingException newCacheLoadingException(java.lang.Exception e, java.lang.Exception suppressed)
CacheLoadingException
with the provided exception as cause and a suppressed one.e
- the causesuppressed
- the suppressed exception to add to the new exception