Exception: GoApiClient::HttpFetcher::HttpError

Inherits:
ConnectionError show all
Defined in:
lib/go_api_client/http_fetcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, http_code) ⇒ HttpError

Returns a new instance of HttpError.



14
15
16
17
# File 'lib/go_api_client/http_fetcher.rb', line 14

def initialize(msg, http_code)
  super(msg)
  @http_code = http_code
end

Instance Attribute Details

#http_codeObject (readonly)

Returns the value of attribute http_code.



12
13
14
# File 'lib/go_api_client/http_fetcher.rb', line 12

def http_code
  @http_code
end