jose/docs/classes/util_errors.jwtclaimvalidationfailed.md
2021-07-02 17:21:55 +02:00

2.2 KiB

Class: JWTClaimValidationFailed

util/errors.JWTClaimValidationFailed

An error subclass thrown when a JWT Claim Set member validation fails.

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new JWTClaimValidationFailed(message, claim?, reason?)

Parameters

Name Type Default value
message string undefined
claim string 'unspecified'
reason string 'unspecified'

Overrides

JOSEError.constructor

Defined in

util/errors.ts:43

Properties

claim

claim: string

The Claim for which the validation failed.

Defined in

util/errors.ts:38


code

code: string

A unique error code for the particular error subclass.

Overrides

JOSEError.code

Defined in

util/errors.ts:33


reason

reason: string

Reason code for the validation failure.

Defined in

util/errors.ts:43


code

Static code: string = 'ERR_JWT_CLAIM_VALIDATION_FAILED'

A unique error code for the particular error subclass.

Overrides

JOSEError.code

Defined in

util/errors.ts:31