Class InvalidRoleMemberException

All Implemented Interfaces:
Serializable

public class InvalidRoleMemberException extends RoleException
Thrown when a role is created or updated with new members that violate any membership contracts.

The typical case for this is if a member being added to the role is NOT a member of the context.

Since:
1.7
See Also:
  • Constructor Details

    • InvalidRoleMemberException

      public InvalidRoleMemberException(Set<Principal> invalidMembers, String message)
      Constructs an InvalidRoleMemberException with the invalid members and specified message.
      Parameters:
      invalidMembers - the set of members that are invalid additions to the role
      message - the detail message (which is saved for later retrieval by the AbstractCheckedException.getMessage() method).
  • Method Details

    • getInvalidMembers

      public Set<Principal> getInvalidMembers()
      Returns the set of members that are invalid additions to the role.
      Returns:
      The set of members that are invalid additions to the role.