lib/geoblacklight/exceptions.rb in geoblacklight-0.7.1 vs lib/geoblacklight/exceptions.rb in geoblacklight-0.8.0

- old
+ new

@@ -1,7 +1,24 @@ module Geoblacklight module Exceptions class ExternalDownloadFailed < StandardError + def initialize(options = {}) + @options = options + end + + ## + # URL tried from failed download + # @return [String] + def url + @options[:url].to_s + end + + ## + # Message passed from a failed download + # @return [String] + def message + @options[:message].to_s + end end class WrongDownloadFormat < StandardError end end end