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

#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.



27
28
29
30
# File 'lib/bolt/config.rb', line 27

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