# BaseError | @aa-sdk/core

> A custom error class that extends from `ViemBaseError`. This class allows for error messages to include links to relevant documentation based on provided `docsPath` and `docsSlug` parameters. This is based on on viem's BaseError type (obviously from the import and extend) we want the errors here to point to our docs if we supply a docsPath though

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

A custom error class that extends from `ViemBaseError`. This class allows for error messages to include links to relevant documentation based on provided `docsPath` and `docsSlug` parameters.
This is based on on viem's BaseError type (obviously from the import and extend)
we want the errors here to point to our docs if we supply a docsPath though

## Extends

- [`BaseError`](https://viem.sh)

## Extended by

- [`AccountNotFoundError`](AccountNotFoundError)
- [`NotAModularAccountV2Error`](NotAModularAccountV2Error)
- [`AccountRequiresOwnerError`](AccountRequiresOwnerError)
- [`BatchExecutionNotSupportedError`](BatchExecutionNotSupportedError)
- [`DefaultFactoryNotDefinedError`](DefaultFactoryNotDefinedError)
- [`FailedToGetStorageSlotError`](FailedToGetStorageSlotError)
- [`GetCounterFactualAddressError`](GetCounterFactualAddressError)
- [`IncorrectAccountType`](IncorrectAccountType)
- [`SignTransactionNotSupportedError`](SignTransactionNotSupportedError)
- [`SmartAccountWithSignerRequiredError`](SmartAccountWithSignerRequiredError)
- [`UpgradeToAndCallNotSupportedError`](UpgradeToAndCallNotSupportedError)
- [`UpgradesNotSupportedError`](UpgradesNotSupportedError)
- [`ChainNotFoundError`](ChainNotFoundError)
- [`IncompatibleClientError`](IncompatibleClientError)
- [`InvalidRpcUrlError`](InvalidRpcUrlError)
- [`InvalidEntityIdError`](InvalidEntityIdError)
- [`InvalidNonceKeyError`](InvalidNonceKeyError)
- [`EntityIdOverrideError`](EntityIdOverrideError)
- [`InvalidModularAccountV2Mode`](InvalidModularAccountV2Mode)
- [`InvalidDeferredActionNonce`](InvalidDeferredActionNonce)
- [`EntryPointNotFoundError`](EntryPointNotFoundError)
- [`InvalidEntryPointError`](InvalidEntryPointError)
- [`InvalidSignerTypeError`](InvalidSignerTypeError)
- [`FailedToFindTransactionError`](FailedToFindTransactionError)
- [`TransactionMissingToParamError`](TransactionMissingToParamError)
- [`InvalidUserOperationError`](InvalidUserOperationError)
- [`WaitForUserOperationError`](WaitForUserOperationError)

## Constructors

### Constructor

```ts
new BaseError(shortMessage, args): BaseError;
```

Defined in: [aa-sdk/core/src/errors/base.ts:28](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/base.ts#L28)

#### Parameters

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

  <tbody>
    <tr>
      <td>
        `shortMessage`
      </td>

      <td>
        `string`
      </td>
    </tr>

    <tr>
      <td>
        `args`
      </td>

      <td>
        `BaseErrorParameters`
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`BaseError`

#### Overrides

```ts
ViemBaseError.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>
        `"AASDKError"`
      </td>
    </tr>

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

      <td>
        `string`
      </td>

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

  </tbody>
</table>