Exception: Bolt::PuppetError

Inherits:
Error
  • Object
show all
Defined in:
lib/bolt/error.rb

Overview

This class is used to treat a Puppet Error datatype as a ruby error outside PAL

Instance Attribute Summary

Attributes inherited from Error

#details, #error_code, #issue_code, #kind

Class Method Summary collapse

Methods inherited from Error

#initialize, #msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task

Constructor Details

This class inherits a constructor from Bolt::Error

Class Method Details

.from_error(err) ⇒ Object



92
93
94
# File 'lib/bolt/error.rb', line 92

def self.from_error(err)
  new(err.msg, err.kind, err.details, err.issue_code)
end