Exception: Puppet::Module::Plan::PlanNotFound Private

Inherits:
Error show all
Defined in:
lib/puppet/module/plan.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from Error

#details, #kind

Attributes inherited from Error

#original

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(plan_name, module_name) ⇒ PlanNotFound

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of PlanNotFound.



44
45
46
47
48
# File 'lib/puppet/module/plan.rb', line 44

def initialize(plan_name, module_name)
  msg = _("Plan %{plan_name} not found in module %{module_name}.") %
        { plan_name: plan_name, module_name: module_name }
  super(msg, 'puppet.plans/plan-not-found', { 'name' => plan_name })
end