# InvalidOwnerError

> Error class denoting that the owner for an account is invalid

> 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/smart-accounts/src/errors/InvalidOwnerError.ts:6](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/errors/InvalidOwnerError.ts#L6)

Error class denoting that the owner for an account is invalid

## Extends

- `BaseError`

## Constructors

### Constructor

```ts
new InvalidOwnerError(reason): InvalidOwnerError;
```

Defined in: [packages/smart-accounts/src/errors/InvalidOwnerError.ts:14](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/errors/InvalidOwnerError.ts#L14)

Initializes a new instance of the error message with a default message indicating that the owner is invalid

#### Parameters

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

  <tbody>
    <tr>
      <td>
        `reason`
      </td>

      <td>
        `string`
      </td>

      <td>
        the reason the owner is invalid
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`InvalidOwnerError`

#### Overrides

```ts
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>
        `"InvalidOwnerError"`
      </td>
    </tr>

  </tbody>
</table>