Package org.apache.geode.cache
Class RegionExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.geode.GemFireException
org.apache.geode.cache.CacheException
org.apache.geode.cache.RegionExistsException
- All Implemented Interfaces:
Serializable
Indicates that the requested region already exists when a region is being created.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofRegionExistsExceptionwith the specified Region.RegionExistsException(Region rgn, Throwable cause) Constructs an instance ofRegionExistsExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class org.apache.geode.cache.CacheException
toStringMethods inherited from class org.apache.geode.GemFireException
getRootCauseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
RegionExistsException
Constructs an instance ofRegionExistsExceptionwith the specified Region.- Parameters:
rgn- the Region that exists
-
RegionExistsException
Constructs an instance ofRegionExistsExceptionwith the specified detail message and cause.- Parameters:
rgn- the Region that existscause- the causal Throwable
-
-
Method Details
-
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.
-