# GetCounterFactualAddressError | @aa-sdk/core

> Custom error class for handling errors when getting a counterfactual address. This extends the `BaseError` class and provides a custom error message and name.

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

Custom error class for handling errors when getting a counterfactual address. This extends the `BaseError` class and provides a custom error message and name.

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new GetCounterFactualAddressError(): GetCounterFactualAddressError;
```

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

Constructor for initializing an error message indicating the failure of fetching the counter-factual address.

#### Returns

`GetCounterFactualAddressError`

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

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

      <td>
        `string`
      </td>

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

  </tbody>
</table>