Exception: Async::REST::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/async/rest/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Returns a new instance of ResponseError.



18
19
20
21
22
# File 'lib/async/rest/error.rb', line 18

def initialize(response)
	super(response.read)
	
	@response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



28
29
30
# File 'lib/async/rest/error.rb', line 28

def response
  @response
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/async/rest/error.rb', line 24

def to_s
	"#{@response}: #{super}"
end