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

@param errorParametersConverter the {@link Converter} used for converting to a {@code Map} representation of the Error parameters
Sets the { @link Converter } used for converting the { @link OAuth2Error } to a { @code Map } representation of the OAuth 2 . 0 Error parameters .