# NotAModularAccountV2Error | @aa-sdk/core

> This error is thrown when an account is not a Modular Account V2

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

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

Defined in: [aa-sdk/core/src/errors/account.ts:24](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L24)

This error is thrown when an account is not a Modular Account V2

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new NotAModularAccountV2Error(): NotAModularAccountV2Error;
```

Defined in: [aa-sdk/core/src/errors/account.ts:29](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/account.ts#L29)

Constructor for initializing an error message indicating that the account is not a Modular Account V2.

#### Returns

`NotAModularAccountV2Error`

#### Overrides

[`BaseError`](BaseError).[`constructor`](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>
        `"NotAModularAccountV2Error"`
      </td>
    </tr>

    <tr>
      <td>
        <a id="version" /> `version`
      </td>

      <td>
        `string`
      </td>

      <td>
        `VERSION`
      </td>
    </tr>

  </tbody>
</table>