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


33
34
35
36
37
# File 'lib/excon/errors.rb', line 33

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


31
32
33
# File 'lib/excon/errors.rb', line 31

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response


31
32
33
# File 'lib/excon/errors.rb', line 31

def response
  @response
end