Exception: Geoblacklight::Exceptions::ExternalDownloadFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/geoblacklight/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ExternalDownloadFailed

Returns a new instance of ExternalDownloadFailed.



5
6
7
# File 'lib/geoblacklight/exceptions.rb', line 5

def initialize(options = {})
  @options = options
end

Instance Method Details

#messageString

Message passed from a failed download

Returns:

  • (String)


19
20
21
# File 'lib/geoblacklight/exceptions.rb', line 19

def message
  @options[:message].to_s
end

#urlString

URL tried from failed download

Returns:

  • (String)


12
13
14
# File 'lib/geoblacklight/exceptions.rb', line 12

def url
  @options[:url].to_s
end