Class: JustimmoClient::Errors::RetrievalFailed

Inherits:
JustimmoError
  • Object
show all
Defined in:
lib/justimmo_client/errors.rb

Overview

Raised when retrieval from the API fails.

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ RetrievalFailed

Returns a new instance of RetrievalFailed.



22
23
24
# File 'lib/justimmo_client/errors.rb', line 22

def initialize(exception)
  super "Failed to get data from the API:\n#{exception.class}: #{exception}"
end