Exception: Puppet::Util::Json::ParseError
- Defined in:
- lib/puppet/util/json.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Class Method Summary collapse
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
6 7 8 |
# File 'lib/puppet/util/json.rb', line 6 def cause @cause end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/puppet/util/json.rb', line 6 def data @data end |
Class Method Details
.build(original_exception, data) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/puppet/util/json.rb', line 8 def self.build(original_exception, data) new(original_exception.).tap do |exception| exception.instance_eval do @cause = original_exception set_backtrace original_exception.backtrace @data = data end end end |