Exception: Mapstatic::Errors::TileRequestError

Inherits:
MapstaticError
  • Object
show all
Defined in:
lib/mapstatic/errors.rb

Overview

Raised when a request for a tile fails.

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ TileRequestError

Returns a new instance of TileRequestError.



9
10
11
12
13
# File 'lib/mapstatic/errors.rb', line 9

def initialize(response)
  url = response.env[:url]
  status = response.status
  super("Retrieving tile from #{url} failed with status code #{status}.")
end