Sha256: 0b4b4b39af105ac6e0f84d5093ab24b8409f6cb1a8d248c12e8da8a0d9678b70

Contents?: true

Size: 588 Bytes

Versions: 20

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true
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
    class WrongBoundingBoxFormat < StandardError
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 lib/geoblacklight/exceptions.rb
geoblacklight-3.8.0 lib/geoblacklight/exceptions.rb
geoblacklight-4.0.0 lib/geoblacklight/exceptions.rb
geoblacklight-4.0.0.pre.rc3 lib/geoblacklight/exceptions.rb
geoblacklight-3.7.0 lib/geoblacklight/exceptions.rb
geoblacklight-4.0.0.pre.rc2 lib/geoblacklight/exceptions.rb
geoblacklight-4.0.0.pre.rc1 lib/geoblacklight/exceptions.rb
geoblacklight-3.6.0 lib/geoblacklight/exceptions.rb
geoblacklight-3.5.0 lib/geoblacklight/exceptions.rb
geoblacklight-4.0.0.pre.alpha.3 lib/geoblacklight/exceptions.rb
geoblacklight-4.0.0.pre.alpha.2 lib/geoblacklight/exceptions.rb
geoblacklight-4.0.0.pre.alpha.1 lib/geoblacklight/exceptions.rb
geoblacklight-4.0.0.pre.alpha lib/geoblacklight/exceptions.rb
geoblacklight-3.4.0 lib/geoblacklight/exceptions.rb
geoblacklight-3.3.1 lib/geoblacklight/exceptions.rb
geoblacklight-3.3.0 lib/geoblacklight/exceptions.rb
geoblacklight-3.2.0 lib/geoblacklight/exceptions.rb
geoblacklight-3.1.0 lib/geoblacklight/exceptions.rb
geoblacklight-3.0.1 lib/geoblacklight/exceptions.rb
geoblacklight-3.0.0 lib/geoblacklight/exceptions.rb