org.ehcache.spi.loaderwriter
Class BulkCacheLoadingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.ehcache.spi.loaderwriter.CacheLoadingException
                  extended by org.ehcache.spi.loaderwriter.BulkCacheLoadingException
All Implemented Interfaces:
java.io.Serializable

public class BulkCacheLoadingException
extends CacheLoadingException

Thrown by a Cache when its CacheLoaderWriter fails while bulk loading values.

See Also:
Serialized Form

Constructor Summary
BulkCacheLoadingException(java.util.Map<?,java.lang.Exception> failures, java.util.Map<?,?> successes)
          Constructs a BulkCacheLoadingException instance with the given maps.
BulkCacheLoadingException(java.lang.String message, java.util.Map<java.lang.Object,java.lang.Exception> failures, java.util.Map<java.lang.Object,java.lang.Object> successes)
          Constructs a new exception instance with the given message and maps.
 
Method Summary
 java.util.Map<?,java.lang.Exception> getFailures()
          Returns the map of keys to exception.
 java.util.Map<?,?> getSuccesses()
          Returns the map of keys to value.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BulkCacheLoadingException

public BulkCacheLoadingException(java.util.Map<?,java.lang.Exception> failures,
                                 java.util.Map<?,?> successes)
Constructs a BulkCacheLoadingException instance with the given maps.

The two maps are:

Parameters:
failures - the map of keys to failure encountered while loading
successes - the map of keys successfully loaded and their associated value

BulkCacheLoadingException

public BulkCacheLoadingException(java.lang.String message,
                                 java.util.Map<java.lang.Object,java.lang.Exception> failures,
                                 java.util.Map<java.lang.Object,java.lang.Object> successes)
Constructs a new exception instance with the given message and maps.

The given two maps are:

Parameters:
message - the exception message
failures - the map of keys to failure encountered while loading
successes - the map of keys successfully loaded and their associated value
Method Detail

getFailures

public java.util.Map<?,java.lang.Exception> getFailures()
Returns the map of keys to exception.

Returns:
a map of keys to the exception encountered while loading

getSuccesses

public java.util.Map<?,?> getSuccesses()
Returns the map of keys to value.

Returns:
a map of keys to the value loaded