Exception: Hubscreen::RequestError

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

Direct Known Subclasses

ContactExistsError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ RequestError

Returns a new instance of RequestError.



7
8
9
10
11
12
# File 'lib/hubscreen/exceptions.rb', line 7

def initialize(message, response)
  message += "\n" if message
  me = super("#{message}Response body: #{response}",)
  me.response = response
  return me
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/hubscreen/exceptions.rb', line 5

def response
  @response
end