Sha256: 816146cd8dfd9d1c91f25473a4b68a8ff71deac5ce23a1ed24dedcfaadf6cdda

Contents?: true

Size: 640 Bytes

Versions: 12

Compression:

Stored size: 640 Bytes

Contents

module Puppet::HTTP
  class HTTPError < Puppet::Error; end

  class ConnectionError < HTTPError; end

  class RouteError < HTTPError; end

  class ProtocolError < HTTPError; end

  class ResponseError < HTTPError
    attr_reader :response

    def initialize(response)
      super(response.reason)
      @response = response
    end
  end

  class TooManyRedirects < HTTPError
    def initialize(addr)
      super(_("Too many HTTP redirections for %{addr}") % { addr: addr})
    end
  end

  class TooManyRetryAfters < HTTPError
    def initialize(addr)
      super(_("Too many HTTP retries for %{addr}") % { addr: addr})
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
puppet-6.12.0 lib/puppet/http/errors.rb
puppet-6.12.0-x86-mingw32 lib/puppet/http/errors.rb
puppet-6.12.0-x64-mingw32 lib/puppet/http/errors.rb
puppet-6.12.0-universal-darwin lib/puppet/http/errors.rb
puppet-6.11.1 lib/puppet/http/errors.rb
puppet-6.11.1-x86-mingw32 lib/puppet/http/errors.rb
puppet-6.11.1-x64-mingw32 lib/puppet/http/errors.rb
puppet-6.11.1-universal-darwin lib/puppet/http/errors.rb
puppet-6.11.0 lib/puppet/http/errors.rb
puppet-6.11.0-x86-mingw32 lib/puppet/http/errors.rb
puppet-6.11.0-x64-mingw32 lib/puppet/http/errors.rb
puppet-6.11.0-universal-darwin lib/puppet/http/errors.rb