Class UserExistsException

All Implemented Interfaces:
Serializable

public class UserExistsException extends ExistsException
Exception thrown when attempting to create a new user with a username that already exists in the system.
Author:
Brage Halvorsen Kvamme, Trym Hamer Gudvangen
See Also:
  • Constructor Details

    • UserExistsException

      public UserExistsException(String username)
      This method constructs a new UserExistsException with the provided username.
      Parameters:
      username - The username that already exists, given as a String
    • UserExistsException

      public UserExistsException(String attribute, String value)
      This method constructs a new UserExistsException with the provided attribute and value.
      Parameters:
      attribute - The attribute of the user that already exists, given as a String
      value - The value of the attribute that already exists, given as a String