Exception: Excon::Errors::HTTPStatusError

Inherits:
Error
  • Object
show all
Defined in:
lib/excon/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, request = nil, response = nil) ⇒ HTTPStatusError

Returns a new instance of HTTPStatusError.



19
20
21
22
23
# File 'lib/excon/errors.rb', line 19

def initialize(msg, request = nil, response = nil)
  super(msg)
  @request = request
  @response = response
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



17
18
19
# File 'lib/excon/errors.rb', line 17

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



17
18
19
# File 'lib/excon/errors.rb', line 17

def response
  @response
end