Exception: RestConnection::Errors::HTTPStatusError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rest_connection.rb

Overview

HTTPStatusErrors, borrowed lovingly from the excon gem <3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of HTTPStatusError.



306
307
308
309
310
# File 'lib/rest_connection.rb', line 306

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

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



304
305
306
# File 'lib/rest_connection.rb', line 304

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



304
305
306
# File 'lib/rest_connection.rb', line 304

def response
  @response
end