Exception: BSV::Wallet::Error
- Inherits:
-
StandardError
- Object
- StandardError
- BSV::Wallet::Error
- Defined in:
- lib/bsv/wallet/errors.rb
Overview
Base error for all wallet operations. Carries a machine-readable code per the BRC-100 error structure.
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) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code = 1) ⇒ Error
Returns a new instance of Error.
10 11 12 13 |
# File 'lib/bsv/wallet/errors.rb', line 10 def initialize(, code = 1) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/bsv/wallet/errors.rb', line 8 def code @code end |