Exception: WifiWand::NetworkNotFoundError

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

Overview

NETWORK CONNECTION ERRORS ===

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

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

Constructor Details

#initialize(network_name:, available_networks: []) ⇒ NetworkNotFoundError

Returns a new instance of NetworkNotFoundError.



24
25
26
27
28
# File 'lib/wifi_wand/errors.rb', line 24

def initialize(network_name:, available_networks: [])
  @network_name = network_name
  @available_networks = available_networks
  super(build_message)
end

Instance Attribute Details

#available_networksObject (readonly)

Returns the value of attribute available_networks.



22
23
24
# File 'lib/wifi_wand/errors.rb', line 22

def available_networks
  @available_networks
end

#network_nameObject (readonly)

Returns the value of attribute network_name.



22
23
24
# File 'lib/wifi_wand/errors.rb', line 22

def network_name
  @network_name
end