Exception: Puppet::Network::HTTP::Handler::HTTPError

Inherits:
Exception show all
Defined in:
lib/puppet/network/http/handler.rb

Direct Known Subclasses

HTTPNotAcceptableError, HTTPNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

#to_zaml, yaml_new

Constructor Details

#initialize(message, status) ⇒ HTTPError

Returns a new instance of HTTPError.



24
25
26
27
# File 'lib/puppet/network/http/handler.rb', line 24

def initialize(message, status)
  super(message)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)



22
23
24
# File 'lib/puppet/network/http/handler.rb', line 22

def status
  @status
end