Class RegionExistsException

All Implemented Interfaces:
Serializable

public class RegionExistsException extends CacheException
Indicates that the requested region already exists when a region is being created.
Since:
GemFire 2.0
See Also:
  • Constructor Details

    • 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 Details

    • 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.