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, warn_on_stderr

Constructor Details

#initialize(message, exit_code = nil) ⇒ TransportFailed

Returns a new instance of TransportFailed.



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

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.



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

def exit_code
  @exit_code
end