Exception: WinRM::InvalidTransportError

Inherits:
WinRMError
  • Object
show all
Defined in:
lib/winrm/exceptions.rb

Overview

Shell creation error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invalid_transport, valid_transports) ⇒ InvalidTransportError

Returns a new instance of InvalidTransportError.



32
33
34
35
36
37
38
# File 'lib/winrm/exceptions.rb', line 32

def initialize(invalid_transport, valid_transports)
  @invalid_transport = invalid_transport
  super(
    "Invalid transport '#{invalid_transport}' specified" \
    ", expected: #{valid_transports.join(', ')}."
  )
end

Instance Attribute Details

#invalid_transportObject (readonly)

Returns the value of attribute invalid_transport.



30
31
32
# File 'lib/winrm/exceptions.rb', line 30

def invalid_transport
  @invalid_transport
end