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.



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

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.



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

def http_code
  @http_code
end