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.



35
36
37
38
39
# File 'lib/async/rest/error.rb', line 35

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



45
46
47
# File 'lib/async/rest/error.rb', line 45

def response
  @response
end

Instance Method Details

#to_sObject



41
42
43
# File 'lib/async/rest/error.rb', line 41

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