Exception: OWMO::Weather::WeatherResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/owmo/weather.rb

Overview

rdoc Weather response error to handle errors received from OpenWeatherMap.orgs API

Instance Method Summary collapse

Constructor Details

#initialize(weather_response) ⇒ WeatherResponseError

Returns a new instance of WeatherResponseError.



22
23
24
# File 'lib/owmo/weather.rb', line 22

def initialize(weather_response)
  super("ERROR #{weather_response.code}: #{weather_response.weather}")
end