
macros.syncclientclass.json.ClientInvokeMethodErrorResponseHandlerCreation.ftl Maven / Gradle / Ivy
<#--
Glacier has a special JsonErrorResponseHandler to handle a differently named error type field.
This macro is overridden in the Glacier client.
-->
<#macro content metadata customizationConfig>
HttpResponseHandler errorResponseHandler =
protocolFactory.createErrorResponseHandler(
new JsonErrorResponseMetadata()
<#if customizationConfig.customErrorCodeFieldName?? >
.withCustomErrorCodeFieldName("${customizationConfig.customErrorCodeFieldName}")
#if>
<#if metadata.awsQueryCompatible?? >
.withAwsQueryCompatible(true)
#if>
);
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy