# InvalidModularAccountV2Mode | @aa-sdk/core

> Error class denoting that the provided ma v2 account mode is invalid.

> 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/client.ts:110](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/client.ts#L110)

Error class denoting that the provided ma v2 account mode is invalid.

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new InvalidModularAccountV2Mode(): InvalidModularAccountV2Mode;
```

Defined in: [aa-sdk/core/src/errors/client.ts:116](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/client.ts#L116)

Initializes a new instance of the error message with a default message indicating that the provided ma v2 account mode is invalid.

#### Returns

`InvalidModularAccountV2Mode`

#### 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>
        `"InvalidModularAccountV2Mode"`
      </td>
    </tr>

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

      <td>
        `string`
      </td>

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

  </tbody>
</table>