# InvalidUserOperationError | @aa-sdk/core

> Thrown when a UserOperationStruct is not a valid request  extends viem BaseError

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

Thrown when a UserOperationStruct is not a valid request

extends viem BaseError

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new InvalidUserOperationError(uo): InvalidUserOperationError;
```

Defined in: [aa-sdk/core/src/errors/useroperation.ts:22](https://github.com/alchemyplatform/aa-sdk/blob/main/aa-sdk/core/src/errors/useroperation.ts#L22)

Creates an instance of InvalidUserOperationError.

InvalidUserOperationError constructor

#### Parameters

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

  <tbody>
    <tr>
      <td>
        `uo`
      </td>

      <td>
        [`UserOperationStruct`](../type-aliases/UserOperationStruct)
      </td>

      <td>
        the invalid user operation struct
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`InvalidUserOperationError`

#### 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>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <a id="name" /> `name`
      </td>

      <td>
        `string`
      </td>

      <td>
        `"InvalidUserOperationError"`
      </td>

      <td>
        **Inherit Doc**
      </td>
    </tr>

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

      <td>
        `string`
      </td>

      <td>
        `VERSION`
      </td>

      <td>
        ‐
      </td>
    </tr>

  </tbody>
</table>