# InvalidEntityIdError

> Error class denoting that the provided entity id is invalid because it's too large.

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

Defined in: [packages/smart-accounts/src/errors/InvalidEntityIdError.ts:6](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/errors/InvalidEntityIdError.ts#L6)

Error class denoting that the provided entity id is invalid because it's too large.

## Extends

- `BaseError`

## Constructors

### Constructor

```ts
new InvalidEntityIdError(entityId): InvalidEntityIdError;
```

Defined in: [packages/smart-accounts/src/errors/InvalidEntityIdError.ts:14](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/errors/InvalidEntityIdError.ts#L14)

Initializes a new instance of the error message with a default message indicating that the entity id is invalid because it's too large.

#### Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `entityId`
      </td>

      <td>
        `number`
      </td>

      <td>
        the invalid entityId used
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`InvalidEntityIdError`

#### Overrides

```ts
BaseError.constructor;
```

## Properties

<table>
  <thead>
    <tr>
      <th align="left">Property</th>
      <th align="left">Type</th>
      <th align="left">Default value</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <a id="name" /> `name`
      </td>

      <td>
        `string`
      </td>

      <td>
        `"InvalidEntityIdError"`
      </td>
    </tr>

  </tbody>
</table>