Class: JustimmoClient::Errors::RetrievalFailed
- Inherits:
-
JustimmoError
- Object
- JustimmoClient::Errors::RetrievalFailed
- Defined in:
- lib/justimmo_client/errors.rb
Overview
Raised when retrieval from the API fails.
Instance Method Summary collapse
-
#initialize(exception) ⇒ RetrievalFailed
constructor
A new instance of RetrievalFailed.
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 |