com.sas.hls.security.membership.exception
Class MemberExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sas.hls.common.exception.AbstractCheckedException
              extended by com.sas.hls.security.membership.exception.MembershipException
                  extended by com.sas.hls.security.membership.exception.MemberExistsException
All Implemented Interfaces:
Serializable

public class MemberExistsException
extends MembershipException

The principal specified is already a member of this membership context.

See Also:
Serialized Form

Constructor Summary
MemberExistsException(Set<Principal> existingMembers, String message)
          Constructs a MembershipExistsException with the specified message and list of principals.
 
Method Summary
 Set<Principal> getExistingMembers()
          Get the set of principals which are already members of this context.
 
Methods inherited from class com.sas.hls.common.exception.AbstractCheckedException
getLocalizedMessage, getMessage, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemberExistsException

public MemberExistsException(Set<Principal> existingMembers,
                             String message)
Constructs a MembershipExistsException with the specified message and list of principals.

Parameters:
existingMembers - The set of principals which are already members.
message - The detailed message for this exception.
Method Detail

getExistingMembers

public Set<Principal> getExistingMembers()
Get the set of principals which are already members of this context.

Returns:
the set of principals which are already members of this context


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA