Exception: Bolt::Node::BaseError

Inherits:
Error
  • Object
show all
Defined in:
lib/bolt/node/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#details, #error_code

Instance Method Summary collapse

Methods inherited from Error

#msg, #to_h, #to_json, #to_puppet_error, unknown_plan, unknown_task

Constructor Details

#initialize(message, issue_code) ⇒ BaseError

Returns a new instance of BaseError.



8
9
10
# File 'lib/bolt/node/errors.rb', line 8

def initialize(message, issue_code)
  super(message, kind, nil, issue_code)
end

Instance Attribute Details

#issue_codeObject (readonly)

Returns the value of attribute issue_code.



6
7
8
# File 'lib/bolt/node/errors.rb', line 6

def issue_code
  @issue_code
end

Instance Method Details

#kindObject



12
13
14
# File 'lib/bolt/node/errors.rb', line 12

def kind
  'puppetlabs.tasks/node-error'
end