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

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

Constructor Details

#initialize(message, issue_code = nil) ⇒ BaseError

TODO: can we just drop issue code here?


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

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

Instance Attribute Details

#issue_codeObject (readonly)

Returns the value of attribute issue_code.


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

def issue_code
  @issue_code
end

Instance Method Details

#kindObject


15
16
17
# File 'lib/bolt/node/errors.rb', line 15

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