Skip to Content

SiwxParseError

Defined in: errors.ts:30 

Thrown by parseMessage when a string is not a well-formed CAIP-122 message (wrong header, missing blank lines or missing required fields). Code: SIWX_PARSE_ERROR.

Extends

Constructors

Constructor

new SiwxParseError(message): SiwxParseError

Defined in: errors.ts:34 

Parameters

message

string

Human-readable description of the parse failure.

Returns

SiwxParseError

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

Last updated on