Exception: JetBlack::TerminalSessionTimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/jet_black/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(terminal, expected_value, timeout) ⇒ TerminalSessionTimeoutError

Returns a new instance of TerminalSessionTimeoutError.



40
41
42
43
44
45
46
47
# File 'lib/jet_black/errors.rb', line 40

def initialize(terminal, expected_value, timeout)
  @terminal = terminal

  super <<~MSG
    Interactive terminal session timed out after #{timeout} second(s).
    Waiting for: '#{expected_value}'
  MSG
end

Instance Attribute Details

#terminalObject (readonly)

Returns the value of attribute terminal.



38
39
40
# File 'lib/jet_black/errors.rb', line 38

def terminal
  @terminal
end