Exception: Bitcoin::InvalidPassphrase

Inherits:
Error
  • Object
show all
Defined in:
lib/bc.rb

Overview

InvalidPassphrase is raised when we attempt to decrypt the wallet with an invalid passphrase.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_passwordObject (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