Class BSV::Wallet::Error ¶
Inherits: StandardError
Base error for all wallet operations. Carries a machine-readable code per the BRC-100 error structure and a wire-protocol stack string.
Attributes¶
code [R] ¶
Returns the value of attribute code.
wallet_stack [R] ¶
Returns the value of attribute wallet_stack.
Public Instance Methods¶
initialize(message = nil, code: = 1, stack: = '') ¶
- @return [Error] a new instance of Error
to_wire() ¶
Serialise to a hash suitable for embedding in a wire result frame. Never leaks Ruby's internal backtrace — only the wallet_stack string.