public class RegionExistsException extends CacheException
Constructor and Description |
---|
RegionExistsException(Region rgn)
Constructs an instance of
RegionExistsException with the specified Region. |
RegionExistsException(Region rgn,
java.lang.Throwable cause)
Constructs an instance of
RegionExistsException with the specified detail message
and cause. |
Modifier and Type | Method and Description |
---|---|
Region |
getRegion()
Return the Region that already exists which prevented region creation.
|
toString
getRootCause
public RegionExistsException(Region rgn)
RegionExistsException
with the specified Region.rgn
- the Region that existspublic RegionExistsException(Region rgn, java.lang.Throwable cause)
RegionExistsException
with the specified detail message
and cause.rgn
- the Region that existscause
- the causal Throwablepublic Region getRegion()
Throwable.getMessage()
will return the pathFromRoot for the region that exists.