Exception: Puppet::Module::Task::Error 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.
Direct Known Subclasses
InvalidFile, InvalidMetadata, InvalidName, InvalidTask, TaskNotFound
Instance Attribute Summary collapse
- #details ⇒ Object private
- #kind ⇒ Object private
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, kind, details = nil) ⇒ Error
constructor
private
A new instance of Error.
- #to_h ⇒ Object private
Constructor Details
#initialize(message, kind, details = nil) ⇒ Error
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 Error.
10 11 12 13 14 |
# File 'lib/puppet/module/task.rb', line 10 def initialize(, kind, details = nil) super() @details = details || {} @kind = kind end |
Instance Attribute Details
#details ⇒ Object
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.
8 9 10 |
# File 'lib/puppet/module/task.rb', line 8 def details @details end |
#kind ⇒ Object
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.
8 9 10 |
# File 'lib/puppet/module/task.rb', line 8 def kind @kind end |
Instance Method Details
#to_h ⇒ Object
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.
16 17 18 19 20 21 22 |
# File 'lib/puppet/module/task.rb', line 16 def to_h { msg: , kind: kind, details: details } end |