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
readonlycode: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
expected
readonlyexpected:string|string[]
Defined in: errors.ts:148
The expected domain or domains.
received
readonlyreceived:string
Defined in: errors.ts:149
The domain found in the message.