JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.internal.http

Class JsonErrorMessageParser



  • public class JsonErrorMessageParser
    extends Object 
    • Field Detail

      • X_AMZN_ERROR_MESSAGE

        public static final String X_AMZN_ERROR_MESSAGE
        x-amzn-error-message may be returned by RESTFUL services that do not send a response payload (like in a HEAD request).
        See Also:
        Constant Field Values
      • DEFAULT_ERROR_MESSAGE_PARSER

        public static final JsonErrorMessageParser DEFAULT_ERROR_MESSAGE_PARSER
        Standard JSON Error Message Parser that checks for JSON fields in this order: 'message', 'Message', 'errorMessage'
    • Constructor Detail

      • JsonErrorMessageParser

        public JsonErrorMessageParser(List<String> errorMessageJsonLocations)
        Parameters:
        errorMessageJsonLocations - JSON field locations where the parser will attempt to extract the error message from.
    • Method Detail

      • parseErrorMessage

        public String parseErrorMessage(HttpResponse httpResponse,
         com.fasterxml.jackson.databind.JsonNode jsonNode)
        Parse the error message from the response.
        Returns:
        Error Code of exceptional response or null if it can't be determined
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /