com.gemstone.gemfire.cache
Class RegionExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.gemstone.gemfire.GemFireException
com.gemstone.gemfire.cache.CacheException
com.gemstone.gemfire.cache.RegionExistsException
- All Implemented Interfaces:
- Serializable
public class RegionExistsException
- extends CacheException
Indicates that the requested region already exists when a region is
being created.
- Since:
- 2.0
- See Also:
Region.createSubregion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes),
Cache.createRegion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes),
Serialized Form
|
Method Summary |
Region |
getRegion()
Return the Region that already exists which prevented region creation. |
RegionExistsException
public RegionExistsException(Region rgn)
- Constructs an instance of
RegionExistsException with the specified Region.
- Parameters:
rgn - the Region that exists
RegionExistsException
public RegionExistsException(Region rgn,
Throwable cause)
- Constructs an instance of
RegionExistsException with the specified detail message
and cause.
- Parameters:
rgn - the Region that existscause - the causal Throwable
getRegion
public Region getRegion()
- Return the Region that already exists which prevented region creation.
- Returns:
- the Region that already exists, or null if this exception has
been serialized, in which
Throwable.getMessage() will return the
pathFromRoot for the region that exists.
Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.