Method: Azure::Core::Http::HTTPError#parse_json_response

Defined in:
lib/azure/core/http/http_error.rb

#parse_json_responseObject



114
115
116
117
118
# File 'lib/azure/core/http/http_error.rb', line 114

def parse_json_response
  odata_error = JSON.parse(@http_response.body)['odata.error']
  @type = odata_error['code']
  @description = odata_error['message']['value']
end