lib/puppet/parameter.rb
# A wrapper around our munging that makes sure we raise useful exceptions.
A wrapper around our munging that makes sure we raise useful exceptions.
A wrapper around our munging that makes sure we raise useful exceptions .
def munge(value)
    begin
      ret = unsafe_munge(value)
    rescue Puppet::Error => detail
      Puppet.debug "Reraising #{detail}"
      raise
    rescue => detail
      raise Puppet::DevError, "Munging failed for value #{value.inspect} in class #{self.name}: #{detail}", detail.backtrace
    end
    ret
  end
def munge ( value ) begin ret = unsafe_munge ( value ) rescue Puppet :: Error => detail Puppet . debug "Reraising #{detail}" raise rescue => detail raise Puppet :: DevError , "Munging failed for value #{value.inspect} in class #{self.name}: #{detail}" , detail . backtrace end ret end
A wrapper around our munging that makes sure we raise useful exceptions.
A wrapper around our munging that makes sure we raise useful exceptions .
value
<not_specific>