GemFire 5.5

com.gemstone.gemfire.cache
Class RegionExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.gemstone.gemfire.GemFireException
                  extended by com.gemstone.gemfire.cache.CacheException
                      extended by 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

Constructor Summary
RegionExistsException(Region rgn)
          Constructs an instance of RegionExistsException with the specified Region.
RegionExistsException(Region rgn, Throwable cause)
          Constructs an instance of RegionExistsException with the specified detail message and cause.
 
Method Summary
 Region getRegion()
          Return the Region that already exists which prevented region creation.
 
Methods inherited from class com.gemstone.gemfire.cache.CacheException
toString
 
Methods inherited from class com.gemstone.gemfire.GemFireException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 exists
cause - the causal Throwable
Method Detail

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.

GemFire 5.5

Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.