Class InvalidRoleMemberException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidRoleMemberException​(java.util.Set<Principal> invalidMembers, java.lang.String message)
      Constructs an InvalidRoleMemberException with the invalid members and specified message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<Principal> getInvalidMembers()
      Returns the set of members that are invalid additions to the role.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, 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

      • InvalidRoleMemberException

        public InvalidRoleMemberException​(java.util.Set<Principal> invalidMembers,
                                          java.lang.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 Detail

      • getInvalidMembers

        public java.util.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.