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:
Serializable
Thrown when attempting to create a
Cache if one already exists.- Since:
- GemFire 3.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCacheExistsException(Cache cache, String msg) Constructs an instance ofCacheExistsExceptionwith the specified detail message.CacheExistsException(Cache cache, String msg, Throwable cause) Constructs an instance ofCacheExistsExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class org.apache.geode.cache.CacheException
toStringMethods 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
-
CacheExistsException
public CacheExistsException() -
CacheExistsException
Constructs an instance ofCacheExistsExceptionwith the specified detail message.- Parameters:
cache- theCachethat already existsmsg- the detail message
-
CacheExistsException
Constructs an instance ofCacheExistsExceptionwith the specified detail message and cause.- Parameters:
cache- theCachethat already existsmsg- the detail messagecause- the causal Throwable
-
-
Method Details
-
getCache
Returns theCachethat already exists.- Returns:
- the
Cachethat already exists - Since:
- GemFire 4.0
-