Class: Vx::Lib::Shell::ReadTimeoutError

Inherits:
Timeout::Error
  • Object
show all
Defined in:
lib/vx/lib/shell/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(cmd, seconds) ⇒ ReadTimeoutError

Returns a new instance of ReadTimeoutError.



22
23
24
25
# File 'lib/vx/lib/shell/error.rb', line 22

def initialize(cmd, seconds)
  @cmd = cmd
  @seconds = seconds
end

Instance Method Details

#to_sObject



27
28
29
# File 'lib/vx/lib/shell/error.rb', line 27

def to_s
  "No output has been received in the last #{@seconds} seconds"
end