Exception: Sdp::ProviderCapabilityError
- Inherits:
-
BadRequest
- Object
- StandardError
- Error
- BadRequest
- Sdp::ProviderCapabilityError
- Defined in:
- lib/sdp/errors.rb
Overview
A request the configured custody provider cannot serve — not a malformed request. Raised for the FL-10 gates:
-
400 whose message matches PROVISIONING_GATE_PATTERN: local custody holds exactly one root wallet, so POST /v1/wallets is rejected. Wallet-per-User requires a managed provider (e.g. privy).
-
409 on POST /v1/wallets/initialize: custody is already initialized for this organization/project — initialization is one-time.
Subclasses BadRequest so existing rescues keep working; never retryable —the same request fails until the provider configuration changes.
Constant Summary collapse
- PROVISIONING_GATE_PATTERN =
Verified against SDP v0.28: assertCustodyProviderCanCreateWallet (apps/sdp-api/src/services/custody-provider-lifecycle.service.ts) and createProviderWallet (services/domain/signing/provider-wallet-lifecycle.ts) both throw:
"Wallet provisioning not supported for provider: ${provider}" /Wallet provisioning not supported/i
Instance Attribute Summary
Attributes inherited from Error
#code, #details, #http_status, #meta
Method Summary
Methods inherited from Error
Constructor Details
This class inherits a constructor from Sdp::Error