Class InvalidMemberException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidMemberException
    extends MembershipException
    Thrown when an attempt is made to add Principals to a membership in which they are not potential members.
    Since:
    1.2
    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<Principal> getInvalidMembers()
      Gets the set of invalid principals that are referenced by the exception.
      • 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

      • InvalidMemberException

        public InvalidMemberException​(java.util.Set<Principal> invalidMembers,
                                      java.lang.String message)
        Constructs an InvalidMemberException with the set of invalid principals and the specified detailed message.
        Parameters:
        invalidMembers - the set of invalid principals.
        message - the detail message (which is saved for later retrieval by the AbstractCheckedException.getMessage() method).
    • Method Detail

      • getInvalidMembers

        public java.util.Set<Principal> getInvalidMembers()
        Gets the set of invalid principals that are referenced by the exception. the
        Returns:
        The set of invalid principals that are referenced by this exception.