# MethodUnsupportedError

> This error is thrown when an unknown method is called. It extends the `BaseError` class.

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

This error is thrown when an unknown method is called. It extends the `BaseError` class.

## Extends

- [`BaseError`](BaseError)

## Constructors

### Constructor

```ts
new MethodUnsupportedError(method): MethodUnsupportedError;
```

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

Constructor for initializing an error message indicating the method name that is unsupported.

#### Parameters

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

  <tbody>
    <tr>
      <td>
        `method`
      </td>

      <td>
        `string`
      </td>

      <td>
        The name of the unsupported method
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`MethodUnsupportedError`

#### 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>
    </tr>
  </thead>

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

      <td>
        `string`
      </td>

      <td>
        `"MethodUnsupportedError"`
      </td>
    </tr>

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

      <td>
        `string`
      </td>

      <td>
        `VERSION`
      </td>
    </tr>

  </tbody>
</table>