Skip to content
Alchemy Logo

IncompatibleClientError

Defined in: aa-sdk/core/src/errors/client.ts:7

Represents an error thrown when a client is not compatible with the expected client type for a specific method. The error message provides guidance on how to create a compatible client.

new IncompatibleClientError(
   expectedClient,
   method,
   client): IncompatibleClientError;

Defined in: aa-sdk/core/src/errors/client.ts:17

Throws an error when the client type does not match the expected client type.

Parameters

ParameterTypeDescription

expectedClient

string

The expected type of the client.

method

string

The method that was called.

client

Client

The client instance.

Returns

IncompatibleClientError

Overrides

BaseError.constructor

PropertyTypeDefault value

name

string

"IncompatibleClientError"

version

string

VERSION

Was this page helpful?