Gemfire JavaDocs
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 aCache
if 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 ofCacheExistsException
with the specified detail message.CacheExistsException(Cache cache, java.lang.String msg, java.lang.Throwable cause)
Constructs an instance ofCacheExistsException
with the specified detail message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cache
getCache()
Returns theCache
that 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 ofCacheExistsException
with the specified detail message.- Parameters:
cache
- theCache
that already existsmsg
- the detail message
-
CacheExistsException
public CacheExistsException(Cache cache, java.lang.String msg, java.lang.Throwable cause)
Constructs an instance ofCacheExistsException
with the specified detail message and cause.- Parameters:
cache
- theCache
that already existsmsg
- the detail messagecause
- the causal Throwable
-
-
Method Detail
-
getCache
public Cache getCache()
Returns theCache
that already exists.- Returns:
- the
Cache
that already exists - Since:
- GemFire 4.0
-
-