public class UsernameNotFoundException extends BadCredentialsException
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)
Constructs a
UsernameNotFoundException , making use of the extraInformation
property of the superclass. |
UsernameNotFoundException(java.lang.String msg,
java.lang.Throwable t)
Constructs a
UsernameNotFoundException with the specified
message and root cause. |
getAuthentication, getExtraInformation
contains, getMessage, getMostSpecificCause, getRootCause
public UsernameNotFoundException(java.lang.String msg)
UsernameNotFoundException
with the specified
message.msg
- the detail message.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