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:
Serializable
Thrown when attempting to create a
Region.Entry that already exists in the
Region.- Since:
- GemFire 3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntryExistsException(String msg, Object oldValue) Constructs an instance ofEntryExistsExceptionwith the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionReturns the old existing value that caused this exception.voidsetOldValue(Object oldValue) Sets the old existing value that caused this exception.toString()Methods inherited from class org.apache.geode.GemFireException
getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
EntryExistsException
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 Details
-
getOldValue
Returns the old existing value that caused this exception.- Returns:
- the old existing value that caused this exception
-
setOldValue
Sets the old existing value that caused this exception.- Parameters:
oldValue- the old existing value that caused this exception
-
toString
- Overrides:
toStringin classCacheException
-