public class UsernameNotFoundException extends AuthenticationException
UserDetailsService implementation cannot locate a User by its username.| Constructor and Description |
|---|
UsernameNotFoundException(String msg)
Constructs a
UsernameNotFoundException with the specified
message. |
UsernameNotFoundException(String msg,
Object extraInformation)
Deprecated.
|
UsernameNotFoundException(String msg,
Throwable t)
Constructs a
UsernameNotFoundException with the specified message and root cause. |
clearExtraInformation, getAuthentication, getExtraInformation, setAuthenticationaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UsernameNotFoundException(String msg)
UsernameNotFoundException with the specified
message.msg - the detail message.@Deprecated public UsernameNotFoundException(String msg, Object extraInformation)
UsernameNotFoundException, making use of the extraInformation
property of the superclass.msg - the detail messageextraInformation - additional information such as the username.