
macros.syncclientclass.json.ClientInvokeMethodErrorResponseHandlerCreation.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-code-generator Show documentation
Show all versions of aws-java-sdk-code-generator Show documentation
The AWS SDK for Java - Code Generator module holds the classes and templates required to generate the AWS Java SDK clients for AWS services.
<#--
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>
);
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy