org.ehcache.core.exceptions
Class ExceptionFactory

java.lang.Object
  extended by org.ehcache.core.exceptions.ExceptionFactory

public final class ExceptionFactory
extends java.lang.Object

Factory to help creation of CacheLoadingException and CacheWritingException.


Method Summary
static CacheLoadingException newCacheLoadingException(java.lang.Exception e)
          Creates a new CacheLoadingException with the provided exception as cause.
static CacheWritingException newCacheWritingException(java.lang.Exception e)
          Creates a new CacheWritingException with the provided exception as cause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newCacheWritingException

public static CacheWritingException newCacheWritingException(java.lang.Exception e)
Creates a new CacheWritingException with the provided exception as cause.

Parameters:
e - the cause
Returns:
a cache writing exception

newCacheLoadingException

public static CacheLoadingException newCacheLoadingException(java.lang.Exception e)
Creates a new CacheLoadingException with the provided exception as cause.

Parameters:
e - the cause
Returns:
a cache loading exception