Exception: HTTPClient::BadResponseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/httpclient.rb

Overview

Raised for indicating HTTP response error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, res = nil) ⇒ BadResponseError

:nodoc:



248
249
250
251
# File 'lib/httpclient.rb', line 248

def initialize(msg, res = nil) # :nodoc:
  super(msg)
  @res = res
end

Instance Attribute Details

#resObject (readonly)

HTTP::Message

a response



246
247
248
# File 'lib/httpclient.rb', line 246

def res
  @res
end