Exception: BSV::Wallet::WalletError
- Inherits:
-
StandardError
- Object
- StandardError
- BSV::Wallet::WalletError
- Defined in:
- lib/bsv/wallet_interface/errors/wallet_error.rb
Direct Known Subclasses
InvalidHmacError, InvalidParameterError, InvalidSignatureError, UnsupportedActionError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = 1) ⇒ WalletError
constructor
A new instance of WalletError.
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(, code = 1) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (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 |