# PlanError

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

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.

Source: https://ensforge.com/docs/reference/errors/plan-error

<ApiMeta kind="Error class" summary="5 codes · @ensforge/sdk" source="packages/sdk/src/errors/classes/PlanError.ts#L26" />

A prepared or saved plan can no longer be sent as-is.

## Codes [#codes]

| Code | Meaning | Retryable |
| --- | --- | --- |
| [`PLAN_STALE`](/docs/reference/errors/PLAN_STALE) | The plan no longer matches on-chain state. | No |
| [`PLAN_CHAIN_MISMATCH`](/docs/reference/errors/PLAN_CHAIN_MISMATCH) | The plan was prepared for another chain. | No |
| [`PLAN_ACCOUNT_MISMATCH`](/docs/reference/errors/PLAN_ACCOUNT_MISMATCH) | The plan was prepared for another account. | No |
| [`PLAN_INVALID`](/docs/reference/errors/PLAN_INVALID) | The text is not a serialized ensforge plan. | No |
| [`PLAN_ROUTE_REQUIRED`](/docs/reference/errors/PLAN_ROUTE_REQUIRED) | Part of this plan was sent through a route (`via`), which resuming needs again. | No |

## Catch it [#catch-it]

`Effect.catchTag("PlanError", …)` or `error instanceof Errors.PlanError`. See [Handle errors](/docs/sdk/handle-errors).