Class JsonErrorCodeParser


  • public class JsonErrorCodeParser
    extends Object
    • Constructor Detail

      • JsonErrorCodeParser

        public JsonErrorCodeParser()
      • JsonErrorCodeParser

        public JsonErrorCodeParser​(String errorCodeFieldName)
    • Method Detail

      • parseErrorCode

        public String parseErrorCode​(Map<String,​String> httpHeaders,
                                     com.fasterxml.jackson.databind.JsonNode jsonContents)
        Parse the error code from the response.
        Returns:
        Error Code of exceptional response or null if it can't be determined