# UnsupportedPermissionTypeError

> Error class for when an unsupported permission type is added to a permission builder.

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

Error class for when an unsupported permission type is added to a permission builder.

## Extends

- [`PermissionBuilderError`](PermissionBuilderError)

## Constructors

### Constructor

```ts
new UnsupportedPermissionTypeError(): UnsupportedPermissionTypeError;
```

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

Constructor for initializing an error message indicating an unsupported permission type.

#### Returns

`UnsupportedPermissionTypeError`

#### Overrides

```ts
PermissionBuilderError.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>
        `"PermissionBuilder: UnsupportedPermissionTypeError"`
      </td>
    </tr>

  </tbody>
</table>