Class UsernameNotFoundException

All Implemented Interfaces:
Serializable

public class UsernameNotFoundException extends AuthenticationException
Thrown if an UserDetailsService implementation cannot locate a User by its username.
See Also:
  • Constructor Details

    • UsernameNotFoundException

      public UsernameNotFoundException(String msg)
      Constructs a UsernameNotFoundException with the specified message.
      Parameters:
      msg - the detail message.
    • UsernameNotFoundException

      public UsernameNotFoundException(String msg, Throwable cause)
      Constructs a UsernameNotFoundException with the specified message and root cause.
      Parameters:
      msg - the detail message.
      cause - root cause