Exception: CredHubble::Http::Error

Inherits:
Exceptions::Error show all
Defined in:
lib/cred_hubble/http/errors.rb

Class Method Summary collapse

Class Method Details

.from_response(response) ⇒ Object



4
5
6
7
# File 'lib/cred_hubble/http/errors.rb', line 4

def self.from_response(response)
  message = "status: #{response.status}, body: #{response.body}"
  new(message)
end