Skip to Content
Packages@tuwaio/siwx-coreClassesSiwxChainNotAllowedError

SiwxChainNotAllowedError

Defined in: errors.ts:180 

Policy violation: the message chainId is not in the allowed list. Code: SIWX_CHAIN_NOT_ALLOWED. Not thrown by SIWX itself; see SiwxPolicyViolationError.

Extends

Constructors

Constructor

new SiwxChainNotAllowedError(allowedChainIds, received): SiwxChainNotAllowedError

Defined in: errors.ts:185 

Parameters

allowedChainIds

string[]

The allowed CAIP-2 chain IDs.

received

string

The chainId found in the message.

Returns

SiwxChainNotAllowedError

Overrides

SiwxPolicyViolationError.constructor

Properties

allowedChainIds

readonly allowedChainIds: string[]

Defined in: errors.ts:186 

The allowed CAIP-2 chain IDs.


code

readonly code: string = 'SIWX_ERROR'

Defined in: errors.ts:18 

Machine-readable error code, for example SIWX_PARSE_ERROR. Each subclass passes its own code; SIWX_ERROR is used only by the base class.

Inherited from

SiwxPolicyViolationError.code


received

readonly received: string

Defined in: errors.ts:187 

The chainId found in the message.

Last updated on