Class BulkCacheLoadingException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<?,​java.lang.Exception> failures  
      private static long serialVersionUID  
      private java.util.Map<?,​?> successes  
    • Constructor Summary

      Constructors 
      Constructor Description
      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.
      BulkCacheLoadingException​(java.util.Map<?,​java.lang.Exception> failures, java.util.Map<?,​?> successes)
      Constructs a BulkCacheLoadingException instance with the given maps.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • failures

        private final java.util.Map<?,​java.lang.Exception> failures
      • successes

        private final java.util.Map<?,​?> successes
    • 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:

        • a map from keys to exception thrown while loading,
        • a map from keys to value where loading succeeded
        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:

        • a map from keys to exception thrown while loading,
        • a map from keys to value where loading succeeded
        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