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.



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

def initialize(message, original=nil)
  super(Puppet::Util::CharacterEncoding.scrub(message))
  @original = original
end

Instance Attribute Details

#originalObject

Returns the value of attribute original.



4
5
6
# File 'lib/puppet/error.rb', line 4

def original
  @original
end