Class CachePartialUpdateCheckedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.ignite.IgniteCheckedException
-
- org.apache.ignite.internal.processors.cache.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 methodfailedKeys().- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CachePartialUpdateCheckedException(String msg)CachePartialUpdateCheckedException(String msg, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Collection<?> failedKeys, Throwable err)voidadd(Collection<?> failedKeys, Throwable err, AffinityTopologyVersion topVer)<K> Collection<K>failedKeys()Gets collection of failed keys.StringgetMessage()AffinityTopologyVersiontopologyVersion()-
Methods inherited from class org.apache.ignite.IgniteCheckedException
getCause, hasCause, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
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, AffinityTopologyVersion topVer)
- Parameters:
failedKeys- Failed keys.err- Error.topVer- Topology version for failed update.
-
topologyVersion
public AffinityTopologyVersion topologyVersion()
- Returns:
- Topology version.
-
add
public void add(Collection<?> failedKeys, Throwable err)
- Parameters:
failedKeys- Failed keys.err- Error.
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-