# raise

> Overview of the raise function

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
function raise(err): never;
```

Defined in: [packages/common/src/utils/raise.ts:9](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/common/src/utils/raise.ts#L9)

Raises an error.

## Parameters

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

  <tbody>
    <tr>
      <td>
        `err`
      </td>

      <td>
        `string` | [`BaseError`](https://viem.sh)
      </td>

      <td>
        The error to raise.
      </td>
    </tr>

  </tbody>
</table>

## Returns

`never`

Always throws an error.