Skip to Content

SiwxValidationError

Defined in: errors.ts:47 

Signals that one or more message fields failed validation; errors lists every failure. Code: SIWX_VALIDATION_ERROR.

The chain verifiers (verifyEip191, verifyEip1271, verifyEd25519) raise it internally and return its message in SiwxVerifyResult.error. validateMessage returns a result instead of throwing it.

Extends

Constructors

Constructor

new SiwxValidationError(errors): SiwxValidationError

Defined in: errors.ts:51 

Parameters

errors

string[]

Descriptions of the failed checks, as returned by validateMessage.

Returns

SiwxValidationError

Overrides

SiwxError.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

SiwxError.code


errors

readonly errors: string[]

Defined in: errors.ts:51 

Descriptions of the failed checks, as returned by validateMessage.

Last updated on