VMware GemFire Java API Reference
Package org.apache.geode.cache
Class CacheExistsException
- 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.CacheExistsException
-
- All Implemented Interfaces:
java.io.Serializable
public class CacheExistsException extends CacheException
Thrown when attempting to create aCacheif one already exists.- Since:
- GemFire 3.0
- See Also:
CacheFactory.create(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheExistsException()CacheExistsException(Cache cache, java.lang.String msg)Constructs an instance ofCacheExistsExceptionwith the specified detail message.CacheExistsException(Cache cache, java.lang.String msg, java.lang.Throwable cause)Constructs an instance ofCacheExistsExceptionwith the specified detail message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CachegetCache()Returns theCachethat already exists.-
Methods inherited from class org.apache.geode.cache.CacheException
toString
-
Methods inherited from class org.apache.geode.GemFireException
getRootCause
-
-
-
-
Constructor Detail
-
CacheExistsException
public CacheExistsException()
-
CacheExistsException
public CacheExistsException(Cache cache, java.lang.String msg)
Constructs an instance ofCacheExistsExceptionwith the specified detail message.- Parameters:
cache- theCachethat already existsmsg- the detail message
-
CacheExistsException
public CacheExistsException(Cache cache, java.lang.String msg, java.lang.Throwable cause)
Constructs an instance ofCacheExistsExceptionwith the specified detail message and cause.- Parameters:
cache- theCachethat already existsmsg- the detail messagecause- the causal Throwable
-
-
Method Detail
-
getCache
public Cache getCache()
Returns theCachethat already exists.- Returns:
- the
Cachethat already exists - Since:
- GemFire 4.0
-
-