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.



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

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

Instance Method Details

#messageString

Message passed from a failed download

Returns:

  • (String)


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

def message
  @options[:message].to_s
end

#urlString

URL tried from failed download

Returns:

  • (String)


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

def url
  @options[:url].to_s
end