# InvalidInputError

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

What InvalidInputError means, which codes it carries and how to catch it in ensforge. An argument is invalid. Lists its fields and every code.

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

<ApiMeta kind="Error class" summary="10 codes · @ensforge/sdk" source="packages/sdk/src/errors/classes/InvalidInputError.ts#L58" />

An argument is invalid. Detected before any network request.

## Fields [#fields]

| Field | Type | Description |
| --- | --- | --- |
| `input` | `unknown` | The rejected value. |
| `field` | `string` | The option it was passed as, when relevant. |

## Codes [#codes]

| Code | Meaning | Retryable |
| --- | --- | --- |
| [`INVALID_NAME`](/docs/reference/errors/INVALID_NAME) | undefined is not a valid ENS name. | No |
| [`INVALID_ADDRESS`](/docs/reference/errors/INVALID_ADDRESS) | undefined is not a valid address. | No |
| [`INVALID_COIN_TYPE`](/docs/reference/errors/INVALID_COIN_TYPE) | undefined is not a known coin type. | No |
| [`INVALID_CONTENT_HASH`](/docs/reference/errors/INVALID_CONTENT_HASH) | undefined is not a valid content hash. | No |
| [`INVALID_RECORD_VALUE`](/docs/reference/errors/INVALID_RECORD_VALUE) | undefined is not a valid record value. | No |
| [`INVALID_DURATION`](/docs/reference/errors/INVALID_DURATION) | undefined is not a valid duration. | No |
| [`DURATION_TOO_SHORT`](/docs/reference/errors/DURATION_TOO_SHORT) | The duration is shorter than the registrar's minimum. | No |
| [`INVALID_EXPIRY`](/docs/reference/errors/INVALID_EXPIRY) | The expiry cannot be in the past or earlier than the current expiry. | No |
| [`INVALID_ROLES`](/docs/reference/errors/INVALID_ROLES) | undefined is not a valid role bitmap. | No |
| [`SALT_TAKEN`](/docs/reference/errors/SALT_TAKEN) | A contract was already deployed with this salt. | No |

## Catch it [#catch-it]

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