Exception: Puppet::Module::Task::Error Private

Inherits:
Error
  • Object
show all
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 collapse

Attributes inherited from Error

#original

Instance Method Summary collapse

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(message, kind, details = nil)
  super(message)
  @details = details || {}
  @kind = kind
end

Instance Attribute Details

#detailsObject

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

#kindObject

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_hObject

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: message,
    kind: kind,
    details: details
  }
end