Exception: WifiWand::CommandTimeoutError
- Defined in:
- lib/wifi_wand/errors.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#timeout_in_secs ⇒ Object
readonly
Returns the value of attribute timeout_in_secs.
Instance Method Summary collapse
-
#initialize(command:, timeout_in_secs:) ⇒ CommandTimeoutError
constructor
A new instance of CommandTimeoutError.
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
241 242 243 |
# File 'lib/wifi_wand/errors.rb', line 241 def command @command end |
#timeout_in_secs ⇒ Object (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 |