# Class: JWSInvalid [util/errors](../modules/util_errors.md).JWSInvalid An error subclass thrown when a JWS is invalid. ## Table of contents ### Constructors - [constructor](util_errors.JWSInvalid.md#constructor) ### Properties - [code](util_errors.JWSInvalid.md#code) - [code](util_errors.JWSInvalid.md#code) ## Constructors ### constructor • **new JWSInvalid**(`message?`) #### Parameters | Name | Type | | :------ | :------ | | `message?` | `string` | ## Properties ### code • **code**: `string` A unique error code for the particular error subclass. ___ ### code ▪ `Static` **code**: `string` = `'ERR_JWS_INVALID'` A unique error code for the particular error subclass.