Skip to Content
Packages@tuwaio/siwx-coreClassesSiwxDomainMismatchError

SiwxDomainMismatchError

Defined in: errors.ts:142 

Policy violation: the message domain is not one of the expected domains. Code: SIWX_DOMAIN_MISMATCH. Not thrown by SIWX itself; see SiwxPolicyViolationError.

Extends

Constructors

Constructor

new SiwxDomainMismatchError(expected, received): SiwxDomainMismatchError

Defined in: errors.ts:147 

Parameters

expected

string | string[]

The expected domain or domains.

received

string

The domain found in the message.

Returns

SiwxDomainMismatchError

Overrides

SiwxPolicyViolationError.constructor

Properties

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


expected

readonly expected: string | string[]

Defined in: errors.ts:148 

The expected domain or domains.


received

readonly received: string

Defined in: errors.ts:149 

The domain found in the message.

Last updated on