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, getExtraInformationcontains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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 © 2021. All rights reserved.