Exception: BSV::Wallet::WalletError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bsv/wallet_interface/errors/wallet_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = 1) ⇒ WalletError

Returns a new instance of WalletError.



8
9
10
11
# File 'lib/bsv/wallet_interface/errors/wallet_error.rb', line 8

def initialize(message, code = 1)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/bsv/wallet_interface/errors/wallet_error.rb', line 6

def code
  @code
end