Class AlreadyMemberException

All Implemented Interfaces:
Serializable

@ResponseStatus(CONFLICT) public class AlreadyMemberException extends RuntimeException
Thrown when a user tries to join a group they are already a member of.
See Also:
  • Constructor Details

    • AlreadyMemberException

      public AlreadyMemberException(Long groupId, Long userId)
      Constructs a new AlreadyMemberException for a specific user and group.
      Parameters:
      groupId - the ID of the group the user tried to join
      userId - the ID of the user who is already a member