VMware GemFire Java API Reference
Package org.apache.geode.cache
Class EntryExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.geode.GemFireException
-
- org.apache.geode.cache.CacheException
-
- org.apache.geode.cache.EntryExistsException
-
- All Implemented Interfaces:
java.io.Serializable
public class EntryExistsException extends CacheException
Thrown when attempting to create aRegion.Entrythat already exists in theRegion.- Since:
- GemFire 3.0
- See Also:
Region.create(Object, Object),Region.Entry, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntryExistsException(java.lang.String msg, java.lang.Object oldValue)Constructs an instance ofEntryExistsExceptionwith the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetOldValue()Returns the old existing value that caused this exception.voidsetOldValue(java.lang.Object oldValue)Sets the old existing value that caused this exception.java.lang.StringtoString()-
Methods inherited from class org.apache.geode.GemFireException
getRootCause
-
-
-
-
Constructor Detail
-
EntryExistsException
public EntryExistsException(java.lang.String msg, java.lang.Object oldValue)Constructs an instance ofEntryExistsExceptionwith the specified detail message.- Parameters:
msg- the detail messageoldValue- the old existing value that caused this exception- Since:
- GemFire 6.5
-
-
Method Detail
-
getOldValue
public java.lang.Object getOldValue()
Returns the old existing value that caused this exception.- Returns:
- the old existing value that caused this exception
-
setOldValue
public void setOldValue(java.lang.Object oldValue)
Sets the old existing value that caused this exception.- Parameters:
oldValue- the old existing value that caused this exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCacheException
-
-