# BaseError

> 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: [packages/common/src/errors/BaseError.ts:24](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/common/src/errors/BaseError.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

- [`ChainNotFoundError`](ChainNotFoundError)
- [`AccountNotFoundError`](AccountNotFoundError)
- [`ConnectionConfigError`](ConnectionConfigError)
- [`FetchError`](FetchError)
- [`ServerError`](ServerError)
- [`InvalidRequestError`](InvalidRequestError)
- [`MethodUnsupportedError`](MethodUnsupportedError)

## Constructors

### Constructor

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

Defined in: [packages/common/src/errors/BaseError.ts:28](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/common/src/errors/BaseError.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>
        `"AlchemySDKError"`
      </td>
    </tr>

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

      <td>
        `string`
      </td>

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

  </tbody>
</table>