Class MemberExistsException

All Implemented Interfaces:
Serializable

public class MemberExistsException extends MembershipException
Thrown when a principal, or set of principals, is currently a member of the context.
Since:
1.2
See Also:
  • Constructor Details

    • MemberExistsException

      public MemberExistsException(Set<Principal> existingMembers, String message)
      Constructs a MemberExistsException with the set of existing principals and and the specified detail message.
      Parameters:
      existingMembers - the set of principals which are members.
      message - the detail message (which is saved for later retrieval by the AbstractCheckedException.getMessage() method).
  • Method Details

    • getExistingMembers

      public Set<Principal> getExistingMembers()
      Gets the set of principals that are members of the context.
      Returns:
      The set of principals that are members of the context.