GemFire 5.5.1

com.gemstone.gemfire.cache
Class RegionAccessException

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.CacheRuntimeException
                      extended by com.gemstone.gemfire.cache.RoleException
                          extended by com.gemstone.gemfire.cache.RegionRoleException
                              extended by com.gemstone.gemfire.cache.RegionAccessException
All Implemented Interfaces:
Serializable

public class RegionAccessException
extends RegionRoleException

Indicates that an attempt to access the region has failed. Failure is due to one or more missing required roles. Region operations may throw this exception when the MembershipAttributes have been configured with LossAction.NO_ACCESS or LossAction.LIMITED_ACCESS.

Since:
5.0
See Also:
Serialized Form

Constructor Summary
RegionAccessException(String s, String regionFullPath, Set missingRoles)
          Constructs a RegionAccessException with a message.
RegionAccessException(String s, String regionFullPath, Set missingRoles, Throwable ex)
          Constructs a RegionAccessException with a message and a cause.
 
Method Summary
 Set getMissingRoles()
          Returns the missing required roles that caused this exception.
 
Methods inherited from class com.gemstone.gemfire.cache.RegionRoleException
getRegionFullPath
 
Methods inherited from class com.gemstone.gemfire.cache.CacheRuntimeException
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

RegionAccessException

public RegionAccessException(String s,
                             String regionFullPath,
                             Set missingRoles)
Constructs a RegionAccessException with a message.

Parameters:
s - the String message
regionFullPath - full path of region for which access was attempted
missingRoles - the missing required roles that caused this exception

RegionAccessException

public RegionAccessException(String s,
                             String regionFullPath,
                             Set missingRoles,
                             Throwable ex)
Constructs a RegionAccessException with a message and a cause.

Parameters:
s - the String message
regionFullPath - full path of region for which access was attempted
missingRoles - the missing required roles that caused this exception
ex - the Throwable cause
Method Detail

getMissingRoles

public Set getMissingRoles()
Returns the missing required roles that caused this exception.

Returns:
the missing required roles that caused this exception

GemFire 5.5.1

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