Exception: Puppet::Network::HTTP::Error::HTTPServerError
Constant Summary collapse
- CODE =
500
Instance Attribute Summary collapse
- #backtrace ⇒ Object readonly
Attributes inherited from HTTPError
Instance Method Summary collapse
-
#initialize(original_error, issue_kind = Issues::RUNTIME_ERROR) ⇒ HTTPServerError
constructor
A new instance of HTTPServerError.
- #to_json ⇒ Object
Methods inherited from Exception
Constructor Details
#initialize(original_error, issue_kind = Issues::RUNTIME_ERROR) ⇒ HTTPServerError
Returns a new instance of HTTPServerError.
60 61 62 63 |
# File 'lib/puppet/network/http/error.rb', line 60 def initialize(original_error, issue_kind = Issues::RUNTIME_ERROR) super("Server Error: " + original_error., CODE, issue_kind) @backtrace = original_error.backtrace end |
Instance Attribute Details
#backtrace ⇒ Object (readonly)
58 59 60 |
# File 'lib/puppet/network/http/error.rb', line 58 def backtrace @backtrace end |
Instance Method Details
#to_json ⇒ Object
65 66 67 |
# File 'lib/puppet/network/http/error.rb', line 65 def to_json JSON({:message => , :issue_kind => @issue_kind, :stacktrace => self.backtrace}) end |