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, setAuthentication
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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.