Exception: WinRM::InvalidTransportError
- Inherits:
-
WinRMError
- Object
- StandardError
- WinRMError
- WinRM::InvalidTransportError
- Defined in:
- lib/winrm/exceptions.rb
Overview
Shell creation error
Instance Attribute Summary collapse
-
#invalid_transport ⇒ Object
readonly
Returns the value of attribute invalid_transport.
Instance Method Summary collapse
-
#initialize(invalid_transport, valid_transports) ⇒ InvalidTransportError
constructor
A new instance of InvalidTransportError.
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_transport ⇒ Object (readonly)
Returns the value of attribute invalid_transport.
30 31 32 |
# File 'lib/winrm/exceptions.rb', line 30 def invalid_transport @invalid_transport end |