Exception: Bitcoin::InvalidPassphrase
Overview
InvalidPassphrase is raised when we attempt to decrypt the wallet with an invalid passphrase.
Instance Attribute Summary collapse
-
#bad_password ⇒ Object
readonly
This is the password we tried (unsuccessfully) to authenticate with.
Instance Method Summary collapse
-
#initialize(bad_password) ⇒ InvalidPassphrase
constructor
A new instance of InvalidPassphrase.
Constructor Details
#initialize(bad_password) ⇒ InvalidPassphrase
Returns a new instance of InvalidPassphrase.
99 100 101 102 |
# File 'lib/bc.rb', line 99 def initialize(bad_password) @bad_password = bad_password super("Invalid password: #{@bad_password.inspect}") end |
Instance Attribute Details
#bad_password ⇒ Object (readonly)
This is the password we tried (unsuccessfully) to authenticate with.
97 98 99 |
# File 'lib/bc.rb', line 97 def bad_password @bad_password end |