GemFire 6.5

com.gemstone.gemfire.cache
Class CacheExistsException

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.CacheExistsException
All Implemented Interfaces:
Serializable

public class CacheExistsException
extends CacheException

Thrown when attempting to create a Cache if one already exists.

Since:
3.0
See Also:
CacheFactory.create(com.gemstone.gemfire.distributed.DistributedSystem), Serialized Form

Constructor Summary
CacheExistsException(Cache cache, String msg)
          Constructs an instance of CacheExistsException with the specified detail message.
CacheExistsException(Cache cache, String msg, Throwable cause)
          Constructs an instance of CacheExistsException with the specified detail message and cause.
 
Method Summary
 Cache getCache()
          Returns the Cache that already exists.
 
Methods inherited from class com.gemstone.gemfire.cache.CacheException
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

CacheExistsException

public CacheExistsException(Cache cache,
                            String msg)
Constructs an instance of CacheExistsException with the specified detail message.

Parameters:
msg - the detail message

CacheExistsException

public CacheExistsException(Cache cache,
                            String msg,
                            Throwable cause)
Constructs an instance of CacheExistsException with the specified detail message and cause.

Parameters:
msg - the detail message
cause - the causal Throwable
Method Detail

getCache

public Cache getCache()
Returns the Cache that already exists.

Since:
4.0

GemFire 6.5

Copyright © 2002-2010 GemStone Systems, Inc. All Rights Reserved.