Exception: RiotAPI::ResponseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Returns a new instance of ResponseError.



8
9
10
11
# File 'lib/riot_api/errors.rb', line 8

def initialize(response)
  self.response = response
  super("An error has occurred during the HTTP request. Check the response for more details.")
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



6
7
8
# File 'lib/riot_api/errors.rb', line 6

def response
  @response
end