Exception: WifiWand::InvalidNetworkPasswordError
- Defined in:
- lib/wifi_wand/errors.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason = 'Password is invalid') ⇒ InvalidNetworkPasswordError
constructor
A new instance of InvalidNetworkPasswordError.
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
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
148 149 150 |
# File 'lib/wifi_wand/errors.rb', line 148 def reason @reason end |