oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/http/converter/OAuth2ErrorHttpMessageConverter.java
public final void setErrorConverter(Converter<Map<String, String>, OAuth2Error> errorConverter) {
		Assert.notNull(errorConverter, "errorConverter cannot be null");
		this.errorConverter = errorConverter;
	}
public final void setErrorConverter(Converter<Map<String, String>, OAuth2Error> errorConverter) {
		Assert.notNull(errorConverter, "errorConverter cannot be null");
		this.errorConverter = errorConverter;
	}
public final void setErrorConverter ( Converter < Map < String , String > , OAuth2Error > errorConverter ) { Assert . notNull ( errorConverter , "errorConverter cannot be null" ) ; this . errorConverter = errorConverter ; }
Sets the {@link Converter} used for converting the OAuth 2.0 Error parameters
to an {@link OAuth2Error}.

@param errorConverter the {@link Converter} used for converting to an {@link OAuth2Error}
Sets the { @link Converter } used for converting the OAuth 2 . 0 Error parameters to an { @link OAuth2Error } .