Class CachePartialUpdateCheckedException

  • All Implemented Interfaces:
    Serializable

    public class CachePartialUpdateCheckedException
    extends IgniteCheckedException
    Exception thrown from non-transactional cache in case when update succeeded only partially. One can get list of keys for which update failed with method failedKeys().
    See Also:
    Serialized Form
    • Constructor Detail

      • CachePartialUpdateCheckedException

        public CachePartialUpdateCheckedException​(String msg)
        Parameters:
        msg - Error message.
      • CachePartialUpdateCheckedException

        public CachePartialUpdateCheckedException​(String msg,
                                                  Throwable cause)
        Parameters:
        msg - Error message.
    • Method Detail

      • failedKeys

        public <K> Collection<K> failedKeys()
        Gets collection of failed keys.
        Returns:
        Collection of failed keys.
      • add

        public void add​(Collection<?> failedKeys,
                        Throwable err)
        Parameters:
        failedKeys - Failed keys.
        err - Error.