Sha256: ac970fbdf896f6a75ba2cdc8f4ef04d10f1f2df3e5b102deea7b8a32d4091b98

Contents?: true

Size: 685 Bytes

Versions: 80

Compression:

Stored size: 685 Bytes

Contents

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

  class ConnectionError < HTTPError; end

  class RouteError < HTTPError; end

  class ProtocolError < HTTPError; end

  class SerializationError < 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

80 entries across 80 versions & 1 rubygems

Version Path
puppet-6.29.0 lib/puppet/http/errors.rb
puppet-6.29.0-x86-mingw32 lib/puppet/http/errors.rb
puppet-6.29.0-x64-mingw32 lib/puppet/http/errors.rb
puppet-6.29.0-universal-darwin lib/puppet/http/errors.rb
puppet-6.28.0 lib/puppet/http/errors.rb
puppet-6.28.0-x86-mingw32 lib/puppet/http/errors.rb
puppet-6.28.0-x64-mingw32 lib/puppet/http/errors.rb
puppet-6.28.0-universal-darwin lib/puppet/http/errors.rb
puppet-6.27.0 lib/puppet/http/errors.rb
puppet-6.27.0-x86-mingw32 lib/puppet/http/errors.rb
puppet-6.27.0-x64-mingw32 lib/puppet/http/errors.rb
puppet-6.27.0-universal-darwin lib/puppet/http/errors.rb
puppet-6.26.0 lib/puppet/http/errors.rb
puppet-6.26.0-x86-mingw32 lib/puppet/http/errors.rb
puppet-6.26.0-x64-mingw32 lib/puppet/http/errors.rb
puppet-6.26.0-universal-darwin lib/puppet/http/errors.rb
puppet-6.25.1 lib/puppet/http/errors.rb
puppet-6.25.1-x86-mingw32 lib/puppet/http/errors.rb
puppet-6.25.1-x64-mingw32 lib/puppet/http/errors.rb
puppet-6.25.1-universal-darwin lib/puppet/http/errors.rb