# SelectorNotAllowed

> Error class for when a selector is not allowed.

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

Error class for when a selector is not allowed.

## Extends

- [`PermissionBuilderError`](PermissionBuilderError)

## Constructors

### Constructor

```ts
new SelectorNotAllowed(functionName): SelectorNotAllowed;
```

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

Constructor for initializing an error message indicating that the selector being added is not allowed.

#### Parameters

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

  <tbody>
    <tr>
      <td>
        `functionName`
      </td>

      <td>
        `string`
      </td>

      <td>
        The function name of the selector that is being added.
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`SelectorNotAllowed`

#### 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>
        `"SelectorNotAllowed"`
      </td>
    </tr>

  </tbody>
</table>