Exception: Simplenet::Exception::RetrieveError

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

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RetrieveError

Returns a new instance of RetrieveError.



4
5
6
7
8
# File 'lib/simplenet/exception.rb', line 4

def initialize(response)
  msg  = "Could not retrieve data from Simplenet. "
  msg += "Response code: #{response.code}. Error: #{response.body}"
  super msg
end