Exception: OpenReceive::Server::WalletPreflightError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::WalletPreflightError
- Defined in:
- lib/openreceive/server/errors.rb
Overview
Boot-time refusal: the connection offered an info method but preflight could not clear it — the read failed, the wallet cannot receive, or it speaks no encryption mode we support. Booting blind would defer the failure to the first customer checkout, so preflight fails closed (mirrors the JS WALLET_PREFLIGHT_FAILED config error).
Instance Method Summary collapse
-
#initialize(reason) ⇒ WalletPreflightError
constructor
A new instance of WalletPreflightError.
Constructor Details
#initialize(reason) ⇒ WalletPreflightError
Returns a new instance of WalletPreflightError.
198 199 200 201 202 203 |
# File 'lib/openreceive/server/errors.rb', line 198 def initialize(reason) super( "OpenReceive wallet preflight failed: #{reason} Use a receive-only " \ "NWC connection advertising make_invoice and list_transactions." ) end |