Exception: JetBlack::TerminalSessionTimeoutError
- Defined in:
- lib/jet_black/errors.rb
Instance Attribute Summary collapse
-
#terminal ⇒ Object
readonly
Returns the value of attribute terminal.
Instance Method Summary collapse
-
#initialize(terminal, expected_value, timeout) ⇒ TerminalSessionTimeoutError
constructor
A new instance of TerminalSessionTimeoutError.
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
#terminal ⇒ Object (readonly)
Returns the value of attribute terminal.
38 39 40 |
# File 'lib/jet_black/errors.rb', line 38 def terminal @terminal end |