Exception: WifiWand::CommandTimeoutError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#append_help_hint?, #display_message, #exception, #message_for_display

Constructor Details

#initialize(command:, timeout_in_secs:) ⇒ CommandTimeoutError

Returns a new instance of CommandTimeoutError.



243
244
245
246
247
# File 'lib/wifi_wand/errors.rb', line 243

def initialize(command:, timeout_in_secs:)
  @command = command
  @timeout_in_secs = timeout_in_secs
  super("Command timed out after #{timeout_in_secs} seconds: #{command}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



241
242
243
# File 'lib/wifi_wand/errors.rb', line 241

def command
  @command
end

#timeout_in_secsObject (readonly)

Returns the value of attribute timeout_in_secs.



241
242
243
# File 'lib/wifi_wand/errors.rb', line 241

def timeout_in_secs
  @timeout_in_secs
end