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.



8
9
10
11
12
# File 'lib/puppet/module/task.rb', line 8

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.



7
8
9
# File 'lib/puppet/module/task.rb', line 7

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.



7
8
9
# File 'lib/puppet/module/task.rb', line 7

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.



14
15
16
17
18
19
20
# File 'lib/puppet/module/task.rb', line 14

def to_h
  {
    msg: message,
    kind: kind,
    details: details
  }
end