Exception: WifiWand::NetworkNotFoundError
- Defined in:
- lib/wifi_wand/errors.rb
Overview
NETWORK CONNECTION ERRORS ===
Instance Attribute Summary collapse
-
#available_networks ⇒ Object
readonly
Returns the value of attribute available_networks.
-
#network_name ⇒ Object
readonly
Returns the value of attribute network_name.
Instance Method Summary collapse
-
#initialize(network_name:, available_networks: []) ⇒ NetworkNotFoundError
constructor
A new instance of NetworkNotFoundError.
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() end |
Instance Attribute Details
#available_networks ⇒ Object (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_name ⇒ Object (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 |