Class UserNotFoundException

All Implemented Interfaces:
Serializable

public class UserNotFoundException extends ObjectNotFoundException
Thrown when the specified user could not be found.
See Also:
  • Constructor Details

    • UserNotFoundException

      public UserNotFoundException(String userName)
    • UserNotFoundException

      public UserNotFoundException(String userName, Throwable t)
  • Method Details

    • getUserName

      public String getUserName()
      Returns the name of the user that could not be found.
      Returns:
      name of the user that could not be found
    • throwNotFoundByExternalId

      public static void throwNotFoundByExternalId(String externalId) throws UserNotFoundException
      Static factory to throw a UserNotFoundException when searching by externalId rather than username.
      Parameters:
      externalId - the external Id
      Throws:
      UserNotFoundException - always
    • forExternalId

      public static UserNotFoundException forExternalId(String externalId)