Exception: Kitchen::Transport::TransportFailed

Inherits:
Kitchen::TransientFailure show all
Defined in:
lib/kitchen/transport/base.rb

Overview

Wrapped exception for any internally raised Transport errors.

Author:

Direct Known Subclasses

SshFailed, WinrmFailed

Instance Attribute Summary collapse

Attributes inherited from StandardError

#original

Instance Method Summary collapse

Methods included from Error

formatted_backtrace, formatted_exception, formatted_trace

Constructor Details

#initialize(message, exit_code = nil) ⇒ TransportFailed

Returns a new instance of TransportFailed.



33
34
35
36
# File 'lib/kitchen/transport/base.rb', line 33

def initialize(message, exit_code = nil)
  @exit_code = exit_code
  super(message)
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



31
32
33
# File 'lib/kitchen/transport/base.rb', line 31

def exit_code
  @exit_code
end