GemFire 6.6.3

com.gemstone.gemfire.cache
Class EntryExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gemstone.gemfire.GemFireException
                  extended by com.gemstone.gemfire.cache.CacheException
                      extended by com.gemstone.gemfire.cache.EntryExistsException
All Implemented Interfaces:
Serializable

public class EntryExistsException
extends CacheException

Thrown when attempting to create a Region.Entry that already exists in the Region.

Since:
3.0
See Also:
Region.create(Object, Object), Region.Entry, Serialized Form

Constructor Summary
EntryExistsException(String msg, Object oldValue)
          Constructs an instance of EntryExistsException with the specified detail message.
 
Method Summary
 Object getOldValue()
          Returns the old existing value that caused this exception.
 void setOldValue(Object oldValue)
          Sets the old existing value that caused this exception.
 String toString()
           
 
Methods inherited from class com.gemstone.gemfire.GemFireException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntryExistsException

public EntryExistsException(String msg,
                            Object oldValue)
Constructs an instance of EntryExistsException with the specified detail message.

Parameters:
msg - the detail message
Since:
6.5
Method Detail

getOldValue

public Object getOldValue()
Returns the old existing value that caused this exception.


setOldValue

public void setOldValue(Object oldValue)
Sets the old existing value that caused this exception.


toString

public String toString()
Overrides:
toString in class CacheException

GemFire 6.6.3

Copyright © 1997-2012 VMware, Inc. All rights reserved.