# DefaultFactoryNotDefinedError | @aa-sdk/core

> Represents an error that is thrown when no default factory is defined for a specific account type on a given chain and entry point version. This error suggests providing an override via the `factoryAddress` parameter when creating an account.

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

Represents an error that is thrown when no default factory is defined for a specific account type on a given chain and entry point version.
This error suggests providing an override via the `factoryAddress` parameter when creating an account.

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new DefaultFactoryNotDefinedError(
   accountType,
   chain,
   version): DefaultFactoryNotDefinedError;
```

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

Constructs an error message indicating that no default factory was found for the given account type, chain, and entry point version.

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

    <tr>
      <td>
        `chain`
      </td>

      <td>
        [`Chain`](https://viem.sh)
      </td>

      <td>
        the blockchain chain
      </td>
    </tr>

    <tr>
      <td>
        `version`
      </td>

      <td>
        keyof [`EntryPointRegistryBase`](../interfaces/EntryPointRegistryBase)\<`unknown`>
      </td>

      <td>
        the entry point version
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`DefaultFactoryNotDefinedError`

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

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

      <td>
        `string`
      </td>

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

  </tbody>
</table>