Skip to content
Alchemy Logo

MethodUnsupportedError

Defined in: packages/common/src/errors/MethodUnsupportedError.ts:6

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

new MethodUnsupportedError(method): MethodUnsupportedError;

Defined in: packages/common/src/errors/MethodUnsupportedError.ts:14

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

Parameters

ParameterTypeDescription

method

string

The name of the unsupported method

Returns

MethodUnsupportedError

Overrides

BaseError.constructor

PropertyTypeDefault value

name

string

"MethodUnsupportedError"

version

string

VERSION

Was this page helpful?