Exception: Puppet::Network::HTTP::Error::HTTPError
- Inherits:
-
Exception
- Object
- Exception
- Puppet::Network::HTTP::Error::HTTPError
show all
- Defined in:
- lib/puppet/network/http/error.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(message, status, issue_kind) ⇒ HTTPError
Returns a new instance of HTTPError.
9
10
11
12
13
|
# File 'lib/puppet/network/http/error.rb', line 9
def initialize(message, status, issue_kind)
super(message)
@status = status
@issue_kind = issue_kind
end
|
Instance Attribute Details
#issue_kind ⇒ Object
7
8
9
|
# File 'lib/puppet/network/http/error.rb', line 7
def issue_kind
@issue_kind
end
|
7
8
9
|
# File 'lib/puppet/network/http/error.rb', line 7
def status
@status
end
|
Instance Method Details
15
16
17
|
# File 'lib/puppet/network/http/error.rb', line 15
def to_json
JSON({:message => message, :issue_kind => @issue_kind})
end
|