Exception: Bolt::Plugin::Puppetdb::FactLookupError
- Defined in:
- lib/bolt/plugin/puppetdb.rb
Instance Attribute Summary
Attributes inherited from Error
#details, #error_code, #issue_code, #kind
Instance Method Summary collapse
-
#initialize(fact, err = nil) ⇒ FactLookupError
constructor
A new instance of FactLookupError.
Methods inherited from Error
#msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task
Constructor Details
#initialize(fact, err = nil) ⇒ FactLookupError
Returns a new instance of FactLookupError.
7 8 9 10 11 |
# File 'lib/bolt/plugin/puppetdb.rb', line 7 def initialize(fact, err = nil) m = String.new("Fact lookup '#{fact}' contains an invalid factname") m << ": #{err}" unless err.nil? super(m, 'bolt.plugin/fact-lookup-error') end |