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.



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

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

Instance Method Details

#messageString

Message passed from a failed download

Returns:

  • (String)


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

def message
  @options[:message].to_s
end

#urlString

URL tried from failed download

Returns:

  • (String)


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

def url
  @options[:url].to_s
end