class Puppet::DataTypes::Error
Attributes
details[R]
issue_code[R]
kind[R]
message[R]
msg[R]
Public Class Methods
from_asserted_hash(hash)
click to toggle source
# File lib/puppet/datatypes/impl/error.rb 6 def self.from_asserted_hash(hash) 7 new(hash['msg'], hash['kind'], hash['details'], hash['issue_code']) 8 end
new(msg, kind = nil, details = nil, issue_code = nil)
click to toggle source
# File lib/puppet/datatypes/impl/error.rb 18 def initialize(msg, kind = nil, details = nil, issue_code = nil) 19 @msg = msg 20 @kind = kind 21 @details = details 22 @issue_code = issue_code 23 end
Public Instance Methods
_pcore_init_hash()
click to toggle source
# File lib/puppet/datatypes/impl/error.rb 10 def _pcore_init_hash 11 result = { 'msg' => @msg } 12 result['kind'] = @kind unless @kind.nil? 13 result['details'] = @details unless @details.nil? 14 result['issue_code'] = @issue_code unless @issue_code.nil? 15 result 16 end
eql?(o)
click to toggle source
# File lib/puppet/datatypes/impl/error.rb 25 def eql?(o) 26 self.class.equal?(o.class) && 27 @msg == o.msg && 28 @kind == o.kind && 29 @issue_code == o.issue_code && 30 @details == o.details 31 end
Also aliased as: ==
hash()
click to toggle source
# File lib/puppet/datatypes/impl/error.rb 34 def hash 35 @msg.hash ^ @kind.hash ^ @issue_code.hash 36 end
to_s()
click to toggle source
# File lib/puppet/datatypes/impl/error.rb 38 def to_s 39 Puppet::Pops::Types::StringConverter.singleton.convert(self) 40 end