Skip to content
Alchemy Logo

IncorrectAccountType | @aa-sdk/core

Defined in: aa-sdk/core/src/errors/account.ts:170

Represents an error thrown when an account type does not match the expected type.

new IncorrectAccountType(expected, actual): IncorrectAccountType;

Defined in: aa-sdk/core/src/errors/account.ts:179

Constructs an error object indicating that the expected account type does not match the actual account type.

Parameters

ParameterTypeDescription

expected

string

the expected account type

actual

string

the actual account type that was received

Returns

IncorrectAccountType

Overrides

BaseError.constructor

PropertyTypeDefault value

name

string

"IncorrectAccountTypeError"

version

string

VERSION

Was this page helpful?