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.



19
20
21
# File 'lib/justimmo_client/errors.rb', line 19

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