Exception: Puppet::Module::Task::TaskNotFound Private
- Defined in:
- lib/puppet/module/task.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
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(task_name, module_name) ⇒ TaskNotFound
constructor
private
A new instance of TaskNotFound.
Methods inherited from Error
Constructor Details
#initialize(task_name, module_name) ⇒ TaskNotFound
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 TaskNotFound.
45 46 47 48 49 |
# File 'lib/puppet/module/task.rb', line 45 def initialize(task_name, module_name) msg = _("Task %{task_name} not found in module %{module_name}.") % { task_name: task_name, module_name: module_name } super(msg, 'puppet.tasks/task-not-found', { 'name' => task_name }) end |