Exception: Puppet::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/puppet/error.rb

Overview

The base class for all Puppet errors. It can wrap another exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original = nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/puppet/error.rb', line 8

def initialize(message, original = nil)
  super(message.scrub)
  @original = original
end

Instance Attribute Details

#originalObject

Returns the value of attribute original.



6
7
8
# File 'lib/puppet/error.rb', line 6

def original
  @original
end