UnsupportedError
What UnsupportedError means, which codes it carries and how to catch it in ensforge. Lists its fields and every code. Includes how to catch it.
Error class6 codes · @ensforge/sdk
The operation is not available for this name, resolver, deployment or wallet.
Any write can fail with UnsupportedError: it is part of Errors.WriteError.
Fields
| Field | Type | Description |
|---|---|---|
feature | string | |
protocol | "v1" | "v2" |
Codes
| Code | Meaning | Retryable |
|---|---|---|
UNSUPPORTED_PROTOCOL | This operation is not supported for this names. | No |
UNSUPPORTED_ON_DEPLOYMENT | This feature is not available on this deployment. | No |
RESOLVER_PROFILE_UNSUPPORTED | The resolver does not support this record type. | No |
PAYMENT_TOKEN_UNSUPPORTED | The registrar does not accept this payment token. | No |
UPGRADE_NOT_APPROVED | The upgrade target is not an approved implementation. | No |
WALLET_BATCH_UNSUPPORTED | The wallet cannot send calls as one batch. | No |
Catch it
Effect.catchTag("UnsupportedError", …) or error instanceof Errors.UnsupportedError. See Handle errors.
Was this page helpful?