PlanError
What PlanError means, which codes it carries and how to catch it in ensforge. A prepared or saved plan can no longer be sent as-is.
Error class5 codes · @ensforge/sdk
A prepared or saved plan can no longer be sent as-is.
Codes
| Code | Meaning | Retryable |
|---|---|---|
PLAN_STALE | The plan no longer matches on-chain state. | No |
PLAN_CHAIN_MISMATCH | The plan was prepared for another chain. | No |
PLAN_ACCOUNT_MISMATCH | The plan was prepared for another account. | No |
PLAN_INVALID | The text is not a serialized ensforge plan. | No |
PLAN_ROUTE_REQUIRED | Part of this plan was sent through a route (via), which resuming needs again. | No |
Catch it
Effect.catchTag("PlanError", …) or error instanceof Errors.PlanError. See Handle errors.
Was this page helpful?