SiwxError
Defined in: errors.ts:10
Base class of every SIWX error. Extends the native Error with a machine-readable code (for example
SIWX_PARSE_ERROR) for programmatic handling; name is set to the concrete class name.
Extends
Error
Extended by
SiwxExpiredSessionErrorSiwxNonceReplayErrorSiwxParseErrorSiwxPolicyViolationErrorSiwxUnsupportedNamespaceErrorSiwxValidationErrorSiwxVerificationError
Constructors
Constructor
new SiwxError(
message,code?):SiwxError
Defined in: errors.ts:16
Parameters
message
string
Human-readable description of the error.
code?
string = 'SIWX_ERROR'
Machine-readable error code, for example SIWX_PARSE_ERROR. Each subclass passes its own code;
SIWX_ERROR is used only by the base class.
Returns
SiwxError
Overrides
Error.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.
Last updated on