public class UsernameNotFoundException extends AuthenticationException
UserDetailsService
implementation cannot locate a User
by its username.Constructor and Description |
---|
UsernameNotFoundException(java.lang.String msg)
Constructs a
UsernameNotFoundException with the specified
message. |
UsernameNotFoundException(java.lang.String msg,
java.lang.Object extraInformation)
Deprecated.
|
UsernameNotFoundException(java.lang.String msg,
java.lang.Throwable t)
Constructs a
UsernameNotFoundException with the specified message and root cause. |
clearExtraInformation, getAuthentication, getExtraInformation, setAuthentication
public UsernameNotFoundException(java.lang.String msg)
UsernameNotFoundException
with the specified
message.msg
- the detail message.@Deprecated public UsernameNotFoundException(java.lang.String msg, java.lang.Object extraInformation)
UsernameNotFoundException
, making use of the extraInformation
property of the superclass.msg
- the detail messageextraInformation
- additional information such as the username.public UsernameNotFoundException(java.lang.String msg, java.lang.Throwable t)
UsernameNotFoundException
with the specified message and root cause.msg
- the detail message.t
- root cause