# UpgradesNotSupportedError | @aa-sdk/core

> An error class representing the condition where upgrades are not supported for a specific account type. This error extends the `BaseError` class and provides a custom error message based on the account type.

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

An error class representing the condition where upgrades are not supported for a specific account type. This error extends the `BaseError` class and provides a custom error message based on the account type.

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new UpgradesNotSupportedError(accountType): UpgradesNotSupportedError;
```

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

Error constructor for indicating that upgrades are not supported by the given account type.

#### Parameters

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

  <tbody>
    <tr>
      <td>
        `accountType`
      </td>

      <td>
        `string`
      </td>

      <td>
        The type of account that does not support upgrades
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`UpgradesNotSupportedError`

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

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

      <td>
        `string`
      </td>

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

  </tbody>
</table>