Exception: WifiWand::InvalidNetworkPasswordError

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(reason = 'Password is invalid') ⇒ InvalidNetworkPasswordError

Returns a new instance of InvalidNetworkPasswordError.



150
151
152
153
# File 'lib/wifi_wand/errors.rb', line 150

def initialize(reason = 'Password is invalid')
  @reason = reason
  super("Invalid network password: #{reason}")
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



148
149
150
# File 'lib/wifi_wand/errors.rb', line 148

def reason
  @reason
end