Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

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

CodeMeaningRetryable
PLAN_STALEThe plan no longer matches on-chain state.No
PLAN_CHAIN_MISMATCHThe plan was prepared for another chain.No
PLAN_ACCOUNT_MISMATCHThe plan was prepared for another account.No
PLAN_INVALIDThe text is not a serialized ensforge plan.No
PLAN_ROUTE_REQUIREDPart 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?

On this page