# CommitmentError

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

What CommitmentError means, which codes it carries and how to catch it in ensforge. A .eth commit-reveal registration step is out of order or out of time.

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

<ApiMeta kind="Error class" summary="4 codes · @ensforge/sdk" source="packages/sdk/src/errors/classes/CommitmentError.ts#L37" />

A `.eth` commit-reveal registration step is out of order or out of time.

## Fields [#fields]

| Field | Type | Description |
| --- | --- | --- |
| `commitment` | `Hex` | Hash of the commitment the step concerns, when known. |
| `readyAt` | `bigint` | Unix time (seconds) from which `register` succeeds. |
| `expiresAt` | `bigint` | Unix time (seconds) after which the commitment is too old. |

## Codes [#codes]

| Code | Meaning | Retryable |
| --- | --- | --- |
| [`COMMITMENT_TOO_NEW`](/docs/reference/errors/COMMITMENT_TOO_NEW) | The registration commitment is not ready yet. | Yes |
| [`COMMITMENT_TOO_OLD`](/docs/reference/errors/COMMITMENT_TOO_OLD) | The registration commitment has expired. | No |
| [`COMMITMENT_EXISTS`](/docs/reference/errors/COMMITMENT_EXISTS) | An unexpired commitment with the same data already exists. | No |
| [`COMMITMENT_NOT_FOUND`](/docs/reference/errors/COMMITMENT_NOT_FOUND) | No commitment was found for this registration. | No |

## Catch it [#catch-it]

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