class UsernameNotFoundException extends AuthenticationException. UsernameNotFoundException is thrown if a User cannot be found by its username..