Sha256: 6257a81c5d351f2bdbc0d607622af7fa8451e4693e3e0608c7fedea0bbbbdcce

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

module Voog

  # Raised when Voog API returns a 301 HTTP status code
  class MovedPermanently < StandardError
    attr_reader :response

    def initialize(response, hostname)
      @response = response
      super("#{hostname} is permanently redirected to #{response.headers['location'] if response}")
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voog_api-0.0.16 lib/voog_api/error.rb
voog_api-0.0.15 lib/voog_api/error.rb
voog_api-0.0.14 lib/voog_api/error.rb
voog_api-0.0.13 lib/voog_api/error.rb
voog_api-0.0.12 lib/voog_api/error.rb
voog_api-0.0.11 lib/voog_api/error.rb