Method: Azure::Core::Http::HttpResponse#exception

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

#exceptionObject Also known as: error

Public: Get an error that wraps this HTTP response, as long as this response was unsuccessful. This method will return nil if the response was successful.

Returns an Azure::Core::Http::HTTPError.



74
75
76
# File 'lib/azure/core/http/http_response.rb', line 74

def exception
  HTTPError.new(self) unless success?
end