public class CacheExistsException extends CacheException
Cache
if one already exists.CacheFactory.create(org.apache.geode.distributed.DistributedSystem)
,
Serialized FormConstructor and Description |
---|
CacheExistsException(Cache cache,
java.lang.String msg)
Constructs an instance of
CacheExistsException with the specified detail message. |
CacheExistsException(Cache cache,
java.lang.String msg,
java.lang.Throwable cause)
Constructs an instance of
CacheExistsException with the specified detail message
and cause. |
Modifier and Type | Method and Description |
---|---|
Cache |
getCache()
Returns the
Cache that already exists. |
toString
getRootCause
public CacheExistsException(Cache cache, java.lang.String msg)
CacheExistsException
with the specified detail message.msg
- the detail messagepublic CacheExistsException(Cache cache, java.lang.String msg, java.lang.Throwable cause)
CacheExistsException
with the specified detail message
and cause.msg
- the detail messagecause
- the causal Throwablepublic Cache getCache()
Cache
that already exists.