Class UsernameNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.security.core.AuthenticationException
-
- org.springframework.security.core.userdetails.UsernameNotFoundException
-
- All Implemented Interfaces:
java.io.Serializable
public class UsernameNotFoundException extends AuthenticationException
Thrown if anUserDetailsService
implementation cannot locate aUser
by its username.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UsernameNotFoundException(java.lang.String msg)
Constructs aUsernameNotFoundException
with the specified message.UsernameNotFoundException(java.lang.String msg, java.lang.Throwable cause)
Constructs aUsernameNotFoundException
with the specified message and root cause.
-
-
-
Constructor Detail
-
UsernameNotFoundException
public UsernameNotFoundException(java.lang.String msg)
Constructs aUsernameNotFoundException
with the specified message.- Parameters:
msg
- the detail message.
-
UsernameNotFoundException
public UsernameNotFoundException(java.lang.String msg, java.lang.Throwable cause)
Constructs aUsernameNotFoundException
with the specified message and root cause.- Parameters:
msg
- the detail message.cause
- root cause
-
-