lib/puppet/parameter.rb
# A protected validation method that only ever raises useful exceptions.
A protected validation method that only ever raises useful exceptions.
A protected validation method that only ever raises useful exceptions .
def validate(value)
    begin
      unsafe_validate(value)
    rescue ArgumentError => detail
      fail detail.to_s
    rescue Puppet::Error, TypeError
      raise
    rescue => detail
      raise Puppet::DevError, "Validate method failed for class #{self.name}: #{detail}", detail.backtrace
    end
  end
def validate ( value ) begin unsafe_validate ( value ) rescue ArgumentError => detail fail detail . to_s rescue Puppet :: Error , TypeError raise rescue => detail raise Puppet :: DevError , "Validate method failed for class #{self.name}: #{detail}" , detail . backtrace end end
A protected validation method that only ever raises useful exceptions.
A protected validation method that only ever raises useful exceptions .
value
<not_specific>