public class UsernameNotFoundException extends BadCredentialsException
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)
Constructs a
UsernameNotFoundException , making use of the extraInformation
property of the superclass. |
UsernameNotFoundException(String msg,
Throwable t)
Constructs a
UsernameNotFoundException with the specified
message and root cause. |
getAuthentication, getExtraInformation
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UsernameNotFoundException(String msg)
UsernameNotFoundException
with the specified
message.msg
- the detail message.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.Copyright © 2014. All rights reserved.