Exception: Bolt::UnknownTransportError

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

Instance Attribute Summary

Attributes inherited from Error

#details, #error_code, #issue_code, #kind

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(transport, uri = nil) ⇒ UnknownTransportError

Returns a new instance of UnknownTransportError.


14
15
16
17
# File 'lib/bolt/config.rb', line 14

def initialize(transport, uri = nil)
  msg = uri.nil? ? "Unknown transport #{transport}" : "Unknown transport #{transport} found for #{uri}"
  super(msg, 'bolt/unknown-transport')
end