Exception: WifiWand::QrCodeSecurityUndeterminedError

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(network_name) ⇒ QrCodeSecurityUndeterminedError

Returns a new instance of QrCodeSecurityUndeterminedError.



163
164
165
166
167
168
169
170
# File 'lib/wifi_wand/errors.rb', line 163

def initialize(network_name)
  @network_name = network_name
  super(
    "Network '#{network_name}' security type could not be determined. " \
      'Pass the optional password argument to generate a QR code because WifiWand cannot confirm ' \
      'whether this network is open.'
  )
end

Instance Attribute Details

#network_nameObject (readonly)

Returns the value of attribute network_name.



161
162
163
# File 'lib/wifi_wand/errors.rb', line 161

def network_name
  @network_name
end