# ContractRevertError

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

What ContractRevertError means, which codes it carries and how to catch it in ensforge. Lists its fields and every code.

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

<ApiMeta kind="Error class" summary="1 codes · @ensforge/sdk" source="packages/sdk/src/errors/classes/ContractRevertError.ts#L12" />

A contract reverted with an error ensforge does not map to a more specific class.

Any action can fail with `ContractRevertError`: it is part of `Errors.CommonError`.

## Fields [#fields]

| Field | Type | Description |
| --- | --- | --- |
| `errorName` | `string` | Decoded error name, e.g. `InvalidRecord`, when the ABI knows it. |
| `args` | `readonly unknown[]` |  |
| `data` | `Hex` | Raw revert data. |

## Codes [#codes]

| Code | Meaning | Retryable |
| --- | --- | --- |
| [`CONTRACT_REVERTED`](/docs/reference/errors/CONTRACT_REVERTED) | The contract call reverted. | No |

## Catch it [#catch-it]

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